mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
TEMPORALLY: Fix the 'cache' problem.
This commit is contained in:
parent
17cf939e9e
commit
c8cf461a2d
2 changed files with 14 additions and 1 deletions
3
series
3
series
|
@ -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
12
tmp_chache_issue.diff
Normal 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 = []
|
Loading…
Reference in a new issue