[9.0] rma_account:

* fix view
 * small issue in wizard
 * modify data file
 * smaller issues
This commit is contained in:
Lois Rilo
2018-05-17 12:40:52 +02:00
committed by ahenriquez
parent 5620e95df1
commit da1979af48
4 changed files with 27 additions and 20 deletions

View File

@@ -177,9 +177,8 @@ class RmaOrderLine(models.Model):
@api.onchange('operation_id')
def _onchange_operation_id(self):
result = super(RmaOrderLine, self)._onchange_operation_id()
if not self.operation_id:
return result
self.refund_policy = self.operation_id.refund_policy
if self.operation_id:
self.refund_policy = self.operation_id.refund_policy or 'no'
return result
@api.multi