Add issue8618: Allow changing amount in manual invoice taxes.

This commit is contained in:
Albert Cervera i Areny 2019-08-29 00:01:05 +02:00
parent 61a14416cd
commit f31d0f3a86
2 changed files with 21 additions and 0 deletions

20
issue8618.diff Normal file
View File

@ -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):

1
series
View File

@ -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