Comment 0 for bug 1122363

Revision history for this message
Julio Serna-http://www.vauxoo.com (hearthebreaker) wrote : customization format_address

1.-Steps to reproduce the issue you have observed
to inherit new fields of address to res.partner
example: street3, street4, city2
to fill field format_address of res.country with fields of example
to create a new invoice
to choose customer

2.- The result you observed
send the follow error:
 File "/home/julio/Documentos/openerp/instancias/7.0/server-7.0/openerp/addons/base/res/res_partner.py", line 408, in name_get
    name = name + "\n" + self._display_address(cr, uid, record, without_company=True, context=context)
  File "/home/julio/Documentos/openerp/instancias/7.0/server-7.0/openerp/addons/base/res/res_partner.py", line 576, in _display_address
    return address_format % args
KeyError: u'street3'

This happens because there is not any function that allows me customize the fields that shows or return the function _display_address()

3.-The result you expected
it should have any function that allows customize the fields to show by the function _display_address() even when this fields have been inherited.

4.-
Ubuntu. 12.04, Python 2.7.2+
openerp- server : 4828

NOTE: link about the issue merge purposa
https://code.launchpad.net/~vauxoo/openobject-server/customization_address_field-dev-julio/+merge/147756