odoo/openerp/addons/base/res
Olivier Dony 360b549677 [MERGE] res.partner: many important fixes for contact/company management and address management, see bug 1160365
- Fix autosync of accounting/invoicing-related fields on contacts, just as if they were actually modeled as fields.related to the parent commercial entity. This starts with the addition of the new functional field `commercial_partner_id`, to locate the commercial entity for any partner. The commercial entity is defined as the first ancestor (starting at the partner itself) that is either marked `is_company` or has no parent.

- Corrected autosync of address fields (bug 1160425). Also included in the same patch, because those two mechanisms are closely related and share some parts of the implementation. "use_parent_address" now defaults to False, and auto-sync only happens downstream, except for a special case when creating a new company and a new contact at the same time

- `is_company` does not reset the parent_id field anymore, to allow for multi-level structures. The `parent_id` field now also stays visible if it has a non-empty value

- the `email`, `phone`, `fax`, `mobile`, `lang`, etc. that were sometimes synced when changing parent company are now properly left alone

- res.partner.address_get() now defaults to the partner being looked up rather than company when no match is found at all and no "default" exists. This avoids losing the contact info on invoices when a new contact+company pair is created.

- the embedded contact creation mini-form was updated to include the address fields and the `type` field

- res.partner.name_get now return "Company, Contact" rather than "Contact (Company)" to make it clearer that the company is selected as well.

- Added warning message when changing the Company of a Contact that already has a company, so it is clear that it should only be done if the Company was incorrect - in other cases a new contact must be created under the new company.

- Fixed search domains using "child_of" to also include deactived records, so that using this operator in the search view of business documents returns the expected results.

- fixed propagation of "is_supplier" flag when creation a parent company for a contact created on the fly on a Purchase Order, and when adding contacts to an existing Supplier Company

lp bug: https://launchpad.net/bugs/1160365 fixed
lp bug: https://launchpad.net/bugs/1122363 fixed
lp bug: https://launchpad.net/bugs/1160425 fixed

bzr revid: odo@openerp.com-20130420032529-pvv6vuelp84bt26j
2013-04-20 05:25:29 +02:00
..
config_pixmaps [IMP] openerp python module. 2011-02-07 13:57:23 +01:00
report [IMP] base/res/report: reindent xml 2012-02-23 12:12:44 +01:00
test [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
wizard [IMP] Make wizard work 2012-12-20 10:28:00 +01:00
__init__.py [ADD] Added change_password_wizard 2012-12-19 16:49:57 +01:00
ir_property.py [IMP] use the openerp namespace. 2012-12-10 16:27:23 +01:00
ir_property_view.xml [IMP]Remove type field from the view 2012-08-07 18:21:38 +05:30
res_bank.py [FIX] res_bank: good naming of the keyword parameters of fields_get() 2013-04-12 15:30:08 +02:00
res_bank_view.xml [FIX] res.partner.bank: the state field must be present in all form/tree views 2013-01-31 14:56:09 +01:00
res_company.py [FIX] Passed context in write(...)(Courtesy: Humberto Arocha(hbto)). (Maintenance Case: 586824) 2013-02-22 11:57:54 +05:30
res_company_logo.png [IMP] directory cleanups, moved historical cruft into history 2011-09-26 02:54:44 +02:00
res_company_view.xml [IMP] company form view improved for logo 2012-12-18 18:47:54 +01:00
res_config.py [FIX] res_config: add missing import lost during previous commit 2013-04-11 20:36:34 +02:00
res_config.xml [IMP] remove some of the @noupdate=1 introduced in a previous merge targeting modules' descriptions improvement 2012-08-23 14:20:50 +02:00
res_country.py [FIX]res_country : fix traceback when no value is written in 'code' field when creating a new country 2013-01-31 13:10:52 +01:00
res_country_data.xml [FIX] res_country_data: fix US postal address format 2012-12-17 14:02:49 +01:00
res_country_view.xml [[FIX] country code not required 2012-10-26 08:51:43 +02:00
res_currency.py [FIX] base, res_currency: raise an error if a currency doesn't have any rate associated to the given period (if any) 2013-03-14 16:38:00 +01:00
res_currency_view.xml [IMP]Remove type field from the remaining views. 2012-08-08 16:36:19 +05:30
res_lang.py [MERGE] From trunk (second time) 2012-12-17 15:47:53 +01:00
res_lang_view.xml [IMP]Remove type field from the view 2012-08-07 18:21:38 +05:30
res_partner.py [FIX] res.partner.name_get: partners marked as "is_company" should appear as standalone 2013-04-19 18:47:28 +02:00
res_partner_data.xml [IMP]: base: Improved bank name and bank account number 2012-07-25 12:25:43 +05:30
res_partner_demo.xml [FIX] base: invalid address in demo data causes failure in Google Maps lookup 2013-03-08 10:41:15 +01:00
res_partner_demo.yml [FIX] At the time of creation of record from yml, the onchange will fire and it will override the actual image by default image. 2012-10-31 14:57:45 +05:30
res_partner_image_demo.xml [FIX] At the time of creation of record from yml, the onchange will fire and it will override the actual image by default image. 2012-10-31 14:58:46 +05:30
res_partner_report.xml [IMP] remove or replace group_extended from views and menus 2012-04-25 10:12:50 +02:00
res_partner_shortcut_data.xml [IMP] renames in base/res 2011-08-28 02:13:14 +02:00
res_partner_view.xml [FIX] res.partner: fix invisible attrs on Contacts tab, empty o2m field results in `[]`, not `False` 2013-04-20 02:47:13 +02:00
res_request.py [MERGE] From trunk (second time) 2012-12-17 15:47:53 +01:00
res_request_view.xml [IMP]Remove type field from the view 2012-08-07 18:21:38 +05:30
res_security.xml [IMP]openerp:rename the group Partner Manager -> Contact Creation 2012-09-26 12:33:39 +05:30
res_users.py [FIX]res_users : add missing on_change function for res_user simplified view 2013-03-04 11:58:17 +01:00
res_users_view.xml [ADD] Added change password button in user form view 2012-12-20 13:52:01 +01:00