[FIX] Applied changes for cash register too

bzr revid: bde@tinyerp.com-20110829122328-kgue1z0rob1zbwtp
This commit is contained in:
Bharat (OpenERP) 2011-08-29 17:53:28 +05:30
parent 17358373e3
commit d7a3a1d7ab
2 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@ class account_cash_statement(osv.osv):
}
_defaults = {
'state': 'draft',
'date': lambda *a: time.strftime("%Y-%m-%d %H:%M:%S"),
'date': lambda self,cr,uid,context={}: context.get('date', time.strftime("%Y-%m-%d %H:%M:%S")),
'user_id': lambda self, cr, uid, context=None: uid,
'starting_details_ids': _get_cash_open_box_lines,
'ending_details_ids': _get_default_cash_close_box_lines

View File

@ -2563,7 +2563,7 @@ action = self.pool.get('res.config').next(cr, uid, [], context)
<notebook colspan="4">
<page string="Cash Transactions" attrs="{'invisible': [('state','=','draft')]}">
<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" invisible="1"/>
<field name="date" groups="base.group_extended"/>