← Back to team overview

openerp-india team mailing list archive

[Bug 925352] Re: address fields on partner use wrong address

 

Hello Simon,

This is not a bug but it's your suggestion as well as 
opinion so before implementing it we need to more discussion on it.

That's why currently I am setting this as an "Opinion" .

@Experts : would you please share your views on this.

Thanks and more suggestions are welcomed!


** Changed in: openobject-server
       Status: New => Opinion

-- 
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/925352

Title:
  address fields on partner use wrong address

Status in OpenERP Server:
  Opinion

Bug description:
  The denormalised/related res.partner.address fields on res.partner use
  the wrong address.

  When adding a contact address and a default address for a partner, the
  related fields (e.g city) on res.partner use the contact address
  instead of the default address (visible on eg the customer view from
  sale addon or the supplier view from purchase view).

  Steps to reproduce:

  * Using trunk code and a clean db, modules base and sale installed.
  * create new partner test
  * create a new default address for partner test with city: default city
  * create a new contact address for partner test with city: contact city
  * the customer view (Sales / Address Book / Customers) show contact city.

  Possible solution:

  This is caused by the order on res.partner.address and the fact that the related field selects the first object in the one2many relation.
  By changing the definition ('default','Default') in the type field of res.partner.address to ('0default','Default') the default addresses will be sorted before the contact addresses.

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


References