[FIX] account: tax_ids in function prepareCreatedMoveLinesForPersisting

For the field "tax_ids", a command must be written in the the returned dictionary.
In this way, the ids of the tax will be set on the account move line.

opw:689806
This commit is contained in:
Goffin Simon
2016-12-05 15:57:40 +01:00
parent 734ed038a6
commit e48d4bb85f
@@ -1068,7 +1068,7 @@ var abstractReconciliationLine = Widget.extend({
var amount = line.tax_id ? line.amount_before_tax: line.amount;
dict['credit'] = (amount > 0 ? amount : 0);
dict['debit'] = (amount < 0 ? -1 * amount : 0);
if (line.tax_id) dict['tax_ids'] = [line.tax_id];
if (line.tax_id) dict['tax_ids'] = [[4, line.tax_id, null]];
if (line.analytic_account_id) dict['analytic_account_id'] = line.analytic_account_id;
return dict;
});