Add with_on_change switch to default_get

issue3602
review2781002
This commit is contained in:
Cédric Krier committed 2014-01-26 21:57:41 +01:00
1 parent a73abc860f
commit c5022e0bf5
1 file changed
+2 -2
+2 -2
View File
@@ -643,14 +643,14 @@ class Line(ModelSQL, ModelView):
return Decimal(0)
@classmethod
def default_get(cls, fields, with_rec_name=True):
def default_get(cls, fields, with_rec_name=True, with_on_change=True):
pool = Pool()
Move = pool.get('account.move')
Tax = pool.get('account.tax')
Account = pool.get('account.account')
TaxCode = pool.get('account.tax.code')
values = super(Line, cls).default_get(fields,
with_rec_name=with_rec_name)
with_rec_name=with_rec_name, with_on_change=with_on_change)
if 'move' not in fields:
#Not manual entry