[MIG]account_move_line_rma_order_line to v12

This commit is contained in:
ahenriquez
2019-08-05 16:36:41 +02:00
committed by Christopher Ormaza
parent 3b00973154
commit b61dffc719
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Account Move Line Rma Order Line",
"summary": "Introduces the rma order line to the journal items",
"version": "11.0.1.0.0",
"version": "12.0.1.0.0",
"author": "Eficent, "
"Odoo Community Association (OCA)",
"website": "http://www.github.com/OCA/account-financial-tools",

View File

@@ -60,7 +60,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase):
acc_type, name, code, cls.company)
# Create Product
cls.product = cls._create_product()
cls.product_uom_id = cls.env.ref('product.product_uom_unit')
cls.product_uom_id = cls.env.ref('uom.product_uom_unit')
# Create users
cls.rma_user = cls._create_user(
'rma_user', [cls.group_rma_user,
@@ -252,7 +252,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase):
'description': 'Test refund',
})
make_refund.invoice_refund()
rma_line.refund_line_ids.invoice_id.invoice_validate()
rma_line.refund_line_ids.invoice_id.action_invoice_open()
for aml in rma_line.refund_line_ids.invoice_id.move_id.line_ids:
if aml.product_id == rma_line.product_id and aml.invoice_id:
self.assertEqual(