From f31d0f3a8613380c0815c296aa0aa3180289a179 Mon Sep 17 00:00:00 2001 From: Albert Cervera i Areny Date: Thu, 29 Aug 2019 00:01:05 +0200 Subject: [PATCH] Add issue8618: Allow changing amount in manual invoice taxes. --- issue8618.diff | 20 ++++++++++++++++++++ series | 1 + 2 files changed, 21 insertions(+) create mode 100644 issue8618.diff diff --git a/issue8618.diff b/issue8618.diff new file mode 100644 index 0000000..d7f3d57 --- /dev/null +++ b/issue8618.diff @@ -0,0 +1,20 @@ +diff -r 6597f33e51d2 invoice.py +--- a/trytond/trytond/modules/account_invoice/invoice.py Fri Aug 09 16:33:39 2019 +0200 ++++ b/trytond/trytond/modules/account_invoice/invoice.py Wed Aug 28 23:44:50 2019 +0200 +@@ -2267,7 +2267,7 @@ + else: + self.account = tax.credit_note_account + +- @fields.depends('tax', 'base', 'amount', 'manual', 'invoice', ++ @fields.depends('tax', 'base', 'manual', 'invoice', + '_parent_invoice.currency') + def on_change_with_amount(self): + Tax = Pool().get('account.tax') +@@ -2281,7 +2281,6 @@ + if self.invoice.currency: + amount = self.invoice.currency.round(amount) + return amount +- return self.amount + + @classmethod + def check_modify(cls, taxes): diff --git a/series b/series index 9edebda..8ebd272 100644 --- a/series +++ b/series @@ -11,6 +11,7 @@ issue6253.diff # [account_invoice] add invoice type criteria issue4506.diff # [account_invoice] Add credit invoices keyword from account.invoice issue8479.diff # [account_invoice] missing invoice payment method rule by company create_invoice_credit_with_refund.diff # [account_invoice] revert the creation of a credit invoice whith refund change. reconcile the 2 invoices, not cancell the origin one. +issue8618.diff # [account_invoice] Allow changing amount in manual invoice taxes issue8252.diff # [account_tax_rule_country] Add subdivisiions to match account tax rule