mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] *rma*: some improvements
This commit is contained in:
committed by
Alex Vining
parent
2240dbaa2f
commit
ccd05ed090
@@ -53,6 +53,8 @@ class SaleOrderRmaWizard(models.TransientModel):
|
||||
def create_and_open_rma(self):
|
||||
self.ensure_one()
|
||||
rma = self.create_rma()
|
||||
if not rma:
|
||||
return
|
||||
for rec in rma:
|
||||
rec.action_confirm()
|
||||
action = self.env.ref("rma.rma_action").read()[0]
|
||||
@@ -114,6 +116,7 @@ class SaleOrderLineRmaWizard(models.TransientModel):
|
||||
@api.onchange("product_id")
|
||||
def onchange_product_id(self):
|
||||
self.picking_id = False
|
||||
self.uom_id = self.product_id.uom_id
|
||||
|
||||
@api.depends("picking_id")
|
||||
def _compute_move_id(self):
|
||||
|
||||
Reference in New Issue
Block a user