[12.0][MIG] Migrate rma module to v12.0

This commit is contained in:
Adrià Gil Sorribes
2018-11-19 16:53:43 +01:00
committed by Carlos Vallés Fuster
parent 5658fcc32f
commit 3dc6c67542
15 changed files with 68 additions and 60 deletions

View File

@@ -70,7 +70,7 @@ class RmaOrderLine(models.Model):
@api.multi
def _get_rma_move_qty(self, states, direction='in'):
for rec in self:
product_obj = self.env['product.uom']
product_obj = self.env['uom.uom']
qty = 0.0
if direction == 'in':
op = ops['=']
@@ -238,7 +238,7 @@ class RmaOrderLine(models.Model):
readonly=True, states={'draft': [('readonly', False)]},
)
uom_id = fields.Many2one(
comodel_name='product.uom', string='Unit of Measure',
comodel_name='uom.uom', string='Unit of Measure',
required=True,
readonly=True, states={'draft': [('readonly', False)]},
)