From 3ea89580148bbcf8f9cbda47f8e636aa8795d196 Mon Sep 17 00:00:00 2001 From: Juan Carlos del Valle Date: Tue, 13 Dec 2016 04:21:43 -0600 Subject: [PATCH] [FIX] hr_expenses: add missing tax_ids * ccd6fc6 already fixed the bug of the account move for expenses with more than 1 taxes but the taxes were not used. Adding in `_prepare_move_line` to be included in the created move line. * added Contributor License Agreement Closes #12849 --- addons/hr_expense/models/hr_expense.py | 1 + doc/cla/corporate/x8bit.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 doc/cla/corporate/x8bit.md diff --git a/addons/hr_expense/models/hr_expense.py b/addons/hr_expense/models/hr_expense.py index cf8c05b2e13..7c7209abf62 100644 --- a/addons/hr_expense/models/hr_expense.py +++ b/addons/hr_expense/models/hr_expense.py @@ -159,6 +159,7 @@ class HrExpense(models.Model): 'amount_currency': line['price'] > 0 and abs(line.get('amount_currency')) or -abs(line.get('amount_currency')), 'currency_id': line.get('currency_id'), 'tax_line_id': line.get('tax_line_id'), + 'tax_ids': line.get('tax_ids'), 'ref': line.get('ref'), 'quantity': line.get('quantity',1.00), 'product_id': line.get('product_id'), diff --git a/doc/cla/corporate/x8bit.md b/doc/cla/corporate/x8bit.md new file mode 100644 index 00000000000..acf69f5ffdd --- /dev/null +++ b/doc/cla/corporate/x8bit.md @@ -0,0 +1,15 @@ +México, 2016-07-19 + +X8BIT agrees to the terms of the Odoo Corporate Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Juan Carlos del Valle juan@x8bit.com https://github.com/imekinox + +List of contributors: + +Juan Carlos del Valle juan@x8bit.com https://github.com/imekinox \ No newline at end of file