Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-578237-rgo 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-578237-rgo/+merge/120342
Hello,
Generated pdf does not translate the address in partner language and
"Description" and "Ref" column's values in pdf are incorrect.
This fix fixes these issues. Kindly review the fix.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-578237-rgo/+merge/120342
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-578237-rgo.
=== modified file 'account_followup/report/account_followup_print.py'
--- account_followup/report/account_followup_print.py 2011-12-19 16:54:40 +0000
+++ account_followup/report/account_followup_print.py 2012-08-20 07:33:26 +0000
@@ -34,6 +34,7 @@
'getLines': self._lines_get,
'get_text': self._get_text
})
+ self.context = context
def _ids_to_objects(self, ids):
pool = pooler.get_pool(self.cr.dbname)
@@ -47,7 +48,7 @@
res_partner = pooler.get_pool(self.cr.dbname).get('res.partner')
res_partner_address = pooler.get_pool(self.cr.dbname).get('res.partner.address')
adr = res_partner.address_get(self.cr, self.uid, [stat_line.partner_id.id], [type])[type]
- return adr and res_partner_address.read(self.cr, self.uid, [adr]) or [{}]
+ return adr and res_partner_address.read(self.cr, self.uid, [adr], context=self.context.copy()) or [{}]
def _lines_get(self, stat_by_partner_line):
pool = pooler.get_pool(self.cr.dbname)
@@ -68,8 +69,8 @@
line_cur[line.currency_id.id] = {'line': []}
currency = line.currency_id or line.company_id.currency_id
line_data = {
- 'name': line.move_id.name,
- 'ref': line.ref,
+ 'name': line.invoice.name,
+ 'ref': line.invoice.number,
'date':line.date,
'date_maturity': line.date_maturity,
'balance': currency.id <> line.company_id.currency_id.id and line.amount_currency or (line.debit - line.credit),
_______________________________________________
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