Removed unused origin_quantity property from stock.move from not accepted issue16661002_1.diff patch
Because origin_quantity in stock.move is added as normal fiel din purchase_contract module
This commit is contained in:
parent
24a8a37a58
commit
407eda25c0
|
@ -17,22 +17,22 @@ diff -r 673658d4acd2 account.py
|
|||
@classmethod
|
||||
def copy(cls, lines, default=None):
|
||||
if default is None:
|
||||
diff -r 673658d4acd2 stock.py
|
||||
--- a/trytond/trytond/modules/account_invoice_stock/stock.py Tue Sep 22 22:57:05 2015 +0200
|
||||
+++ b/trytond/trytond/modules/account_invoice_stock/stock.py Mon Oct 19 10:43:41 2015 +0200
|
||||
@@ -24,6 +24,15 @@
|
||||
invoice_line.quantity, self.uom)
|
||||
return quantity
|
||||
|
||||
+ @property
|
||||
+ def origin_quantity(self):
|
||||
+ 'The move quantity computed in origin unit'
|
||||
+ pool = Pool()
|
||||
+ Uom = pool.get('product.uom')
|
||||
+ if not self.origin or not hasattr(self.origin, 'unit'):
|
||||
+ return self.quantity
|
||||
+ return Uom.compute_qty(self.uom, self.quantity, self.origin.unit)
|
||||
+
|
||||
@classmethod
|
||||
def copy(cls, moves, default=None):
|
||||
if default is None:
|
||||
# diff -r 673658d4acd2 stock.py
|
||||
# --- a/trytond/trytond/modules/account_invoice_stock/stock.py Tue Sep 22 22:57:05 2015 +0200
|
||||
# +++ b/trytond/trytond/modules/account_invoice_stock/stock.py Mon Oct 19 10:43:41 2015 +0200
|
||||
# @@ -24,6 +24,15 @@
|
||||
# invoice_line.quantity, self.uom)
|
||||
# return quantity
|
||||
#
|
||||
# + @property
|
||||
# + def origin_quantity(self):
|
||||
# + 'The move quantity computed in origin unit'
|
||||
# + pool = Pool()
|
||||
# + Uom = pool.get('product.uom')
|
||||
# + if not self.origin or not hasattr(self.origin, 'unit'):
|
||||
# + return self.quantity
|
||||
# + return Uom.compute_qty(self.uom, self.quantity, self.origin.unit)
|
||||
# +
|
||||
# @classmethod
|
||||
# def copy(cls, moves, default=None):
|
||||
# if default is None:
|
||||
|
|
Loading…
Reference in New Issue