← Back to team overview

openerp-india team mailing list archive

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

 

Hello Quentin,

I can not agree with you. The obvious using of "default" in this case
means: use this address when the user did not select a specific address.

If you were to define four addresses on a partner, should the address
shown by default be completely random? This makes no sense to me.

Kind regards, Ronald

-- 
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:
  New

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