openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #06229
[Bug 925352] Re: address fields on partner use wrong address
Hello Quentin,
I also obviously also do not agree with this reasoning, hence the bug
report.
I think most users will interpret 'default' as 'main', therefore filling in
the address of the company as a whole under 'default' address, and details
of contacts within that company as 'contact' addresses, using for instance
the contacts personal email address.
The list of customer or supplier relations would then show the personal email
address of the contact within that company whose name is alphabetically sorted
first, instead of the company wide email address defined on the 'default'
address.
Since there is no way of ordering the contacts other than tediously manipulating
the names, so the main contact (which would probably be a copy of the default
address) would show up first, I think most users would prefer to have the default
address on the customer / supplier view.
For those who are interested, the fix I proposed earlier breaks a lot of code,
so a better solution is to change the _order on res.partner.address (in base or a
custom addon) to something along the lines of:
_order = "case when type = 'default' then '0default' else type end,
name"
Regards,
--
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