Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-833049-bde into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #833049 in OpenERP Addons: "bank statement: default date on statement
lines should be the statement date"
https://bugs.launchpad.net/openobject-addons/+bug/833049
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-833049-bde/+merge/73011
Hello Sir,
I have applied the patch of Stéphane Bidoul.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-833049-bde/+merge/73011
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-833049-bde.
=== modified file 'account/account_bank_statement.py'
--- account/account_bank_statement.py 2011-07-01 23:41:24 +0000
+++ account/account_bank_statement.py 2011-08-26 10:06:24 +0000
@@ -470,7 +470,7 @@
}
_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',
}
=== modified file 'account/account_view.xml'
--- account/account_view.xml 2011-08-15 14:21:41 +0000
+++ account/account_view.xml 2011-08-26 10:06:24 +0000
@@ -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"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp