issue12497.diff [purchase] Use the last 10 purchases to set default currency, payment term and invoice method
This commit is contained in:
parent
cfbc276b9e
commit
d01838d807
|
@ -0,0 +1,13 @@
|
|||
diff --git a/tryton/modules/purchase/purchase.py b/tryton/modules/purchase/purchase.py
|
||||
index ae946a3d5c..faf35cecfa 100644
|
||||
--- a/tryton/modules/purchase/purchase.py
|
||||
+++ b/tryton/modules/purchase/purchase.py
|
||||
@@ -424,7 +424,7 @@ class Purchase(
|
||||
table.invoice_method,
|
||||
where=(table.party == self.party.id)
|
||||
& (table.invoice_party == invoice_party),
|
||||
- order_by=table.id,
|
||||
+ order_by=table.id.desc,
|
||||
limit=10)
|
||||
cursor.execute(*subquery.select(
|
||||
subquery.currency,
|
2
series
2
series
|
@ -49,3 +49,5 @@ merge_request581.diff # [account] Post cancelled, grouped, rescheduled and deleg
|
|||
issue12216.diff # [stock] Handle evaluation error of cost price in cost price revision
|
||||
|
||||
issue12480.diff # [trytond] Support GIN index with btree_gin PostgreSQL extension
|
||||
|
||||
issue12497.diff # [purchase] Use the last 10 purchases to set default currency, payment term and invoice method
|
||||
|
|
Loading…
Reference in New Issue