TEMPORALLY: Fix the 'cache' problem.

This commit is contained in:
Bernat Brunet 2023-03-02 22:35:20 +01:00
parent 17cf939e9e
commit c8cf461a2d
2 changed files with 14 additions and 1 deletions

3
series
View file

@ -38,5 +38,6 @@ issue11868.diff # [account] Add on delete CASCADE to lines and keywords of move
issue11582.diff # [trytond] Add authentication services
issue11582-sao.diff # [sao] Add authentication services
issue12018.diff # [commission] Commissions: Incorrect round to Base Amount Field
tmp_chache_issue.diff # [account_invoice] TEMPORALLY: Fix the 'cache' problem.

12
tmp_chache_issue.diff Normal file
View file

@ -0,0 +1,12 @@
diff --git a/tryton/modules/account_invoice/invoice.py b/tryton/modules/account_invoice/invoice.py
index 8e81c27be6..c83868c8e4 100644
--- a/tryton/modules/account_invoice/invoice.py
+++ b/tryton/modules/account_invoice/invoice.py
@@ -1591,6 +1591,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
if moves:
Move.save(moves)
cls.save(invoices)
+ invoices = cls.browse(invoices)
Move.post([i.move for i in invoices if i.move.state != 'posted'])
reconciled = []
to_print = []