~openerp-dev/openobject-server/7.0-fix-contact-company-handling

Viewing all changes in revision 4926.

  • Committer: Olivier Dony
  • Date: 2013-04-10 12:15:36 UTC
  • Revision ID: odo@openerp.com-20130410121536-vm93o6vxhi3b8feu
[FIX] res.partner.address_get: default to partner being looked up rather than company when no match is found at all (and no "default" exists)

Using the commercial entity is not a very good default choice
in many cases. If a new contact is created on-the-fly for a
new document (e.g. sales order), his/her company may be an
empty shell and/or a large corporation that should not be
directly used for e.g. billing/invoicing purposed.
Once a contact/company is set to "invoicing" or "delivery"
we use it, but in other cases we stick to the provided
partner/contact as a saner default.
This should not change anything for cases where advanced
contact management is used and proper address types are
set.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: