diff options
| author | Goffin Simon <sig@odoo.com> | 2016-12-12 16:17:17 +0100 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2016-12-13 10:10:35 +0100 |
| commit | ea021ff17afb06576d2e0fce74a6cde4e9979792 (patch) | |
| tree | 7ca30cbbdc09f1b5175cc083dec97502abfbebef /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 72a4229130fb4096064fb34240d13594ccb29e1e (diff) | |
[FIX] account: taxes with analytic account
The account move line created for a tax must have the right account_analytic_id
according CONDITION.
CONDITION(inspired from function compute defined on model "account.invoice.tax")
if the tax is for an "in_invoice" or an "out_invoice" => tax_code = 'tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_collected_id'
if the tax is for an "out_refund" or an "in_refund" => tax_code = 'ref_tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_paid_id'
note:forward-port upto saas-6
opw:694821
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
