← Back to team overview

openerp-india team mailing list archive

[Bug 1122363] Re: [7.0 & trunk] [base] customization format_address

 

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

** Tags added: maintenance

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1122363

Title:
  [7.0 & trunk] [base] customization format_address

Status in OpenERP Server:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1122363/+subscriptions


References