[DEL] The import invoice button

(lp:c2c-financial-addons/6.1 rev 24.1.42)
This commit is contained in:
Joël Grand-Guillaume
2012-07-04 13:50:36 +02:00
parent c471a0f82a
commit 0bcecf66f9
3 changed files with 22 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ class AccountVoucher(Model):
return super(AccountVoucher, self)._get_period(cr, uid, context)
def create(self, cr, uid, values, context=None):
import pdb
pdb.set_trace()
"""If no period defined in values, ask it from moves."""
if values.get('period_id') == False and context.get('move_line_ids'):
values['period_id'] = self._get_period(cr, uid, context)