mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
create purchase order from view
This commit is contained in:
committed by
Thomas Binsfeld
parent
3d30a711ae
commit
427bc19f55
@@ -152,7 +152,7 @@ class PurchaseOrderLine(models.Model):
|
||||
fiscal_position_id=fiscal_position_id, date_planned=date_planned,
|
||||
name=name, price_unit=price_unit, state=state, context=context)
|
||||
|
||||
if not qty:
|
||||
if product_id and partner_id and not qty:
|
||||
res['value']['product_purchase_qty'] = product_purchase_qty
|
||||
res['value']['product_purchase_uom_id'] = product_purchase_uom_id
|
||||
uom_obj = self.pool['product.uom']
|
||||
|
||||
Reference in New Issue
Block a user