[FIX] account : default date on statement lines should be the statement date

lp bug: https://launchpad.net/bugs/833049 fixed

bzr revid: bde@tinyerp.com-20110826095726-0duq2iuhjzpnzh90
This commit is contained in:
Stéphane Bidoul 2011-08-26 15:27:26 +05:30 committed by Bharat (OpenERP)
parent e7d06fc3d6
commit 17358373e3
2 changed files with 2 additions and 2 deletions

View File

@ -470,7 +470,7 @@ class account_bank_statement_line(osv.osv):
}
_defaults = {
'name': lambda self,cr,uid,context={}: self.pool.get('ir.sequence').get(cr, uid, 'account.bank.statement.line'),
'date': lambda *a: time.strftime('%Y-%m-%d'),
'date': lambda self,cr,uid,context={}: context.get('date', time.strftime('%Y-%m-%d')),
'type': 'general',
}

View File

@ -564,7 +564,7 @@
</group>
<notebook colspan="4">
<page string="Transaction" name="statement_line_ids">
<field colspan="4" name="line_ids" nolabel="1">
<field colspan="4" name="line_ids" nolabel="1" context="{'date':date}">
<tree editable="bottom" string="Statement lines">
<field name="sequence" readonly="1" invisible="1"/>
<field name="date" groups="base.group_extended"/>