mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] default operation in product and product_categ for customer and supplier
[IMP]Separate menus for customer and supplier operations * Add active field to rma operation * Added tests * Fix travis * Fix create supplier rma from customer rma
This commit is contained in:
committed by
JasminSForgeFlow
parent
81d0c4a724
commit
90bb6d754c
@@ -308,8 +308,12 @@ class RmaOrderLine(models.Model):
|
||||
self.product_qty = 1
|
||||
self.uom_id = self.product_id.uom_id.id
|
||||
self.price_unit = self.product_id.standard_price
|
||||
self.operation_id = self.product_id.rma_operation_id or \
|
||||
self.product_id.categ_id.rma_operation_id
|
||||
if self.type == 'customer':
|
||||
self.operation_id = self.product_id.rma_customer_operation_id or \
|
||||
self.product_id.categ_id.rma_customer_operation_id
|
||||
else:
|
||||
self.operation_id = self.product_id.rma_supplier_operation_id or \
|
||||
self.product_id.categ_id.rma_supplier_operation_id
|
||||
return result
|
||||
|
||||
@api.onchange('operation_id')
|
||||
|
||||
Reference in New Issue
Block a user