[FIX] account: Allow to select sale taxes in bank statement reconciliation process. Courtesy of adrienpeiffer. PR #11673
This commit is contained in:
parent
7c584d3ebb
commit
600f884524
|
@ -1378,7 +1378,7 @@ class account_move_line(osv.osv):
|
|||
account_id = 'account_collected_id'
|
||||
base_sign = 'base_sign'
|
||||
tax_sign = 'tax_sign'
|
||||
if journal.type in ('purchase_refund', 'sale_refund') or (journal.type in ('cash', 'bank') and total < 0):
|
||||
if journal.type in ('purchase_refund', 'sale_refund') or (journal.type in ('cash', 'bank') and total < 0 and tax_id.type_tax_use != 'sale'):
|
||||
base_code = 'ref_base_code_id'
|
||||
tax_code = 'ref_tax_code_id'
|
||||
account_id = 'account_paid_id'
|
||||
|
|
|
@ -93,7 +93,7 @@ openerp.account = function (instance) {
|
|||
relation: "account.tax",
|
||||
string: _t("Tax"),
|
||||
type: "many2one",
|
||||
domain: [['type_tax_use','in',['purchase', 'all']], ['parent_id', '=', false]],
|
||||
domain: [['parent_id', '=', false]],
|
||||
},
|
||||
},
|
||||
amount: {
|
||||
|
|
Loading…
Reference in New Issue