Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-575489-rha into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575489-rha/+merge/108723
Hello,
Warning message should be displayed in user's language instead of partner's
while
we validate the invoices.
Please review this fix.
Regards,
Rifakat Haradwala
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-575489-rha/+merge/108723
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-575489-rha.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py 2012-03-29 15:43:31 +0000
+++ account/account_invoice.py 2012-06-05 11:47:20 +0000
@@ -815,7 +815,7 @@
continue
ctx = context.copy()
- ctx.update({'lang': inv.partner_id.lang})
+ ctx.update({'lang': self.pool.get('res.users').browse(cr, uid, uid).context_lang})
if not inv.date_invoice:
self.write(cr, uid, [inv.id], {'date_invoice': fields.date.context_today(self,cr,uid,context=context)}, context=ctx)
company_currency = inv.company_id.currency_id.id
_______________________________________________
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