issue12653.diff [purchase] Depend on product supplier unit to compute unit on price
This commit is contained in:
parent
8718e920c6
commit
ae802e6731
|
@ -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
2
series
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue