Skip to content

Commit

Permalink
[11.0][MIG] rma_repair (ForgeFlow#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaGForgeFlow authored and grindtildeath committed Mar 11, 2019
1 parent 636be15 commit 3a4b25d
Show file tree
Hide file tree
Showing 15 changed files with 176 additions and 672 deletions.
1 change: 0 additions & 1 deletion rma_repair/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from . import models
Expand Down
5 changes: 2 additions & 3 deletions rma_repair/__openerp__.py → rma_repair/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

{
"name": "RMA Repair",
"version": "9.0.1.0.0",
"version": "11.0.1.0.0",
"license": "LGPL-3",
"category": "RMA",
"summary": "Links RMA with Repairs.",
Expand All @@ -18,6 +17,6 @@
"views/rma_order_line_view.xml",
"data/mrp_repair_sequence.xml",
],
"installable": False,
"installable": True,
"auto_install": True,
}
1 change: 0 additions & 1 deletion rma_repair/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from . import mrp_repair
Expand Down
3 changes: 1 addition & 2 deletions rma_repair/models/mrp_repair.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from openerp import fields, models
from odoo import fields, models


class MrpRepair(models.Model):
Expand Down
3 changes: 1 addition & 2 deletions rma_repair/models/rma_operation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from openerp import fields, models
from odoo import fields, models


class RmaOperation(models.Model):
Expand Down
3 changes: 1 addition & 2 deletions rma_repair/models/rma_order.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from openerp import api, fields, models
from odoo import api, fields, models


class RmaOrder(models.Model):
Expand Down
8 changes: 3 additions & 5 deletions rma_repair/models/rma_order_line.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

from openerp import api, fields, models
from openerp.addons import decimal_precision as dp
from odoo import api, fields, models
from odoo.addons import decimal_precision as dp


class RmaOrderLine(models.Model):
Expand Down Expand Up @@ -75,8 +74,7 @@ def _get_rma_repaired_qty(self):
qty = 0.0
for repair in self.repair_ids.filtered(
lambda p: p.state != 'cancel'):
repair_qty = self.env['product.uom']._compute_qty_obj(
self.uom_id,
repair_qty = self.uom_id._compute_quantity(
repair.product_qty,
repair.product_uom,
)
Expand Down
6 changes: 1 addition & 5 deletions rma_repair/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# -*- coding: utf-8 -*-
# © 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from . import test_rma
from . import test_supplier_rma
from . import test_rma_dropship
from . import test_rma_repair
Loading

0 comments on commit 3a4b25d

Please sign in to comment.