From cf7859b2eaa7b01ae08a7447662e0ad2f5221eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 19 Mar 2009 11:02:42 +0100 Subject: [PATCH] Add with_rec_name option to default_get --- move.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/move.py b/move.py index 6956ffaba9..a168634db7 100644 --- a/move.py +++ b/move.py @@ -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