mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[12.0][MIG] Migrate rma module to v12.0
This commit is contained in:
committed by
Carlos Vallés Fuster
parent
5658fcc32f
commit
3dc6c67542
@@ -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)]},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user