Add issue12497.diff
This commit is contained in:
parent
a17ffde803
commit
db6b153cfa
|
@ -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,
|
Loading…
Reference in New Issue