← Back to team overview

credativ team mailing list archive

[Bug 925352] [NEW] address fields on partner use wrong address

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, 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


Follow ups

References