Add with_rec_name option to default_get
This commit is contained in:
1 parent
16ef73ff78
commit
cf7859b2ea
1 file changed
+3
-2
@@ -529,7 +529,8 @@ class Line(ModelSQL, ModelView):
|
||||
def default_active(self, cursor, user, context=None):
|
||||
return True
|
||||
|
||||
def default_get(self, cursor, user, fields, context=None):
|
||||
def default_get(self, cursor, user, fields, context=None,
|
||||
with_rec_name=True):
|
||||
if context is None:
|
||||
context = {}
|
||||
move_obj = self.pool.get('account.move')
|
||||
@@ -537,7 +538,7 @@ class Line(ModelSQL, ModelView):
|
||||
account_obj = self.pool.get('account.account')
|
||||
tax_code_obj = self.pool.get('account.tax.code')
|
||||
values = super(Line, self).default_get(cursor, user, fields,
|
||||
context=context)
|
||||
context=context, with_rec_name=with_rec_name)
|
||||
|
||||
if 'move' not in fields:
|
||||
#Not manual entry
|
||||
|
||||
Reference in new issue
Block a user