Merge lp:~luc-demeyer/openobject-addons/7.0-partner-accounting-fix into lp:openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~luc-demeyer/openobject-addons/7.0-partner-accounting-fix |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
174 lines (+148/-0) 5 files modified
partner_accounting_fix/__init__.py (+23/-0) partner_accounting_fix/__openerp__.py (+42/-0) partner_accounting_fix/account_invoice.py (+35/-0) partner_accounting_fix/accounting_partner.py (+29/-0) partner_accounting_fix/res_partner_view.xml (+19/-0) |
To merge this branch: | bzr merge lp:~luc-demeyer/openobject-addons/7.0-partner-accounting-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+149167@code.launchpad.net |
Description of the change
This module fixes an inconsistency between the way OpenERP 7.0 treats the partner accounting parameters :
• For invoices, the accounts payable/receivable of the partner ‘company’ record (if any) is used (which is the right way)
• For other accounting parameters (e.g. VAT number, payment terms, ... ) the partner ‘contact’ record is used (hence : 10 contacts within the same partner company may have 10 different VAT numbers … ).
How to use functionality offered by this fix e.g. have a look to the account_invoice.py
Line 23 : from openerp.
Line 31: partner = accounting_
So basically : 2 lines of code, 5 minutes of work and the whole thing becomes consistent (but these 5 minutes are required in all modules which retrieve partner accounting parameters).
Please merge the 'partner_
Unmerged revisions
- 8724. By openerp <openerp@oerp70>
-
fix inconsistency in partner accounting parameters