7.0 [PATCH] without_company argument in display_address missing for report use

Bug #1170373 reported by Marcel van der Boom (HS-Development BV)
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D
OpenERP Community Backports (Server)
Status tracked in 7.0
7.0
Fix Committed
Undecided
Stefan Rijnhart (Opener)

Bug Description

The method 'display_address' as defined in res.partner includes an argument 'without_company'.

The method is wrapped in report_sxw.py but the argument is missing. Here's a patch for that:

=== modified file 'openerp/report/report_sxw.py'
--- openerp/report/report_sxw.py 2013-02-08 13:57:04 +0000
+++ openerp/report/report_sxw.py 2013-04-16 19:25:18 +0000
@@ -322,8 +322,8 @@
                 res='%s %s'%(currency_obj.symbol, res)
         return res

- def display_address(self, address_browse_record):
- return self.pool.get('res.partner')._display_address(self.cr, self.uid, address_browse_record)
+ def display_address(self, address_browse_record, without_company=False):
+ return self.pool.get('res.partner')._display_address(self.cr, self.uid, address_browse_record, without_company)

     def repeatIn(self, lst, name,nodes_parent=False):
         ret_lst = []

Related branches

Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.