issue12653.diff [purchase] Depend on product supplier unit to compute unit on price

This commit is contained in:
Raimon Esteve 2023-10-26 07:05:51 +02:00
parent 8718e920c6
commit ae802e6731
2 changed files with 15 additions and 0 deletions

13
issue12653.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/tryton/modules/purchase/product.py b/tryton/modules/purchase/product.py
index ebf14df442..2d20903a8e 100644
--- a/tryton/modules/purchase/product.py
+++ b/tryton/modules/purchase/product.py
@@ -483,7 +483,7 @@ class ProductSupplierPrice(
def default_quantity():
return 0.0
- @fields.depends('product_supplier', '_parent_product_supplier.product')
+ @fields.depends('product_supplier', '_parent_product_supplier.uom')
def on_change_with_uom(self, name=None):
if self.product_supplier and self.product_supplier.uom:
return self.product_supplier.uom.id

2
series
View File

@ -125,3 +125,5 @@ issue12618.diff # [sao] Wrap long label to 80 chars
issue12567.diff # [account_invoice_defer] Defer invoice line only once
issue12626.diff # [account] Do not fail when reconciling an empty list
issue12653.diff # [purchase] Depend on product supplier unit to compute unit on price