mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG]rma v10
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'RMA (Return Merchandise Authorization)',
|
'name': 'RMA (Return Merchandise Authorization)',
|
||||||
'version': '9.0.1.0.0',
|
'version': '10.0.1.0.0',
|
||||||
'license': 'LGPL-3',
|
'license': 'LGPL-3',
|
||||||
'category': 'RMA',
|
'category': 'RMA',
|
||||||
'summary': 'Introduces the return merchandise authorization (RMA) process '
|
'summary': 'Introduces the return merchandise authorization (RMA) process '
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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 ProcurementOrder(models.Model):
|
class ProcurementOrder(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp import fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class ProductTemplate(models.Model):
|
class ProductTemplate(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp import fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class ProductCategory(models.Model):
|
class ProductCategory(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from openerp import api, fields, models
|
from odoo import api, fields, models
|
||||||
|
|
||||||
|
|
||||||
class ResPartner(models.Model):
|
class ResPartner(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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 RmaOperation(models.Model):
|
class RmaOperation(models.Model):
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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, _
|
||||||
from openerp.exceptions import UserError
|
from odoo.exceptions import UserError
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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, _
|
||||||
from openerp.exceptions import ValidationError, UserError
|
from odoo.exceptions import ValidationError, UserError
|
||||||
from openerp.addons import decimal_precision as dp
|
from odoo.addons import decimal_precision as dp
|
||||||
import operator
|
import operator
|
||||||
ops = {'=': operator.eq,
|
ops = {'=': operator.eq,
|
||||||
'!=': operator.ne}
|
'!=': operator.ne}
|
||||||
@@ -74,9 +74,8 @@ class RmaOrderLine(models.Model):
|
|||||||
for move in rec.procurement_ids.mapped('move_ids').filtered(
|
for move in rec.procurement_ids.mapped('move_ids').filtered(
|
||||||
lambda m: m.state in states and op(m.location_id.usage,
|
lambda m: m.state in states and op(m.location_id.usage,
|
||||||
rec.type)):
|
rec.type)):
|
||||||
qty += product_obj._compute_qty_obj(
|
qty += product_obj._compute_quantity(
|
||||||
move.product_uom, move.product_uom_qty,
|
move.product_uom_qty, rec.uom_id)
|
||||||
rec.uom_id)
|
|
||||||
return qty
|
return qty
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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 StockPicking(models.Model):
|
class StockPicking(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp import fields, models
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
class StockWarehouse(models.Model):
|
class StockWarehouse(models.Model):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp.tests import common
|
from odoo.tests import common
|
||||||
|
|
||||||
|
|
||||||
class TestRma(common.TransactionCase):
|
class TestRma(common.TransactionCase):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp.addons.rma.tests import test_rma
|
from odoo.addons.rma.tests import test_rma
|
||||||
|
|
||||||
|
|
||||||
class TestRmaDropship(test_rma.TestRma):
|
class TestRmaDropship(test_rma.TestRma):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp.addons.rma.tests import test_rma
|
from odoo.addons.rma.tests import test_rma
|
||||||
|
|
||||||
|
|
||||||
class TestSupplierRma(test_rma.TestRma):
|
class TestSupplierRma(test_rma.TestRma):
|
||||||
|
|||||||
@@ -300,7 +300,7 @@
|
|||||||
</group>
|
</group>
|
||||||
<notebook>
|
<notebook>
|
||||||
<page name="route" string="Routes">
|
<page name="route" string="Routes">
|
||||||
<group>
|
|
||||||
<group>
|
<group>
|
||||||
<group name="inbound" string="Inbound">
|
<group name="inbound" string="Inbound">
|
||||||
<field name="in_warehouse_id"/>
|
<field name="in_warehouse_id"/>
|
||||||
@@ -319,14 +319,13 @@
|
|||||||
<field name="out_route_id"/>
|
<field name="out_route_id"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
|
||||||
</page>
|
</page>
|
||||||
<page name="stock" string="Stock Moves">
|
<page name="stock" string="Stock Moves">
|
||||||
<field name="move_ids" nolabel="1" readonly="1"/>
|
<field name="move_ids" nolabel="1" readonly="1"/>
|
||||||
</page>
|
</page>
|
||||||
<page name="quantities" string="Quantities">
|
<page name="quantities" string="Quantities">
|
||||||
<group>
|
<group name="quantities" string="Quantities">
|
||||||
<group name="quantities" col="4" string="Quantities">
|
|
||||||
<group name="receive">
|
<group name="receive">
|
||||||
<field name="qty_to_receive"/>
|
<field name="qty_to_receive"/>
|
||||||
<field name="qty_incoming"/>
|
<field name="qty_incoming"/>
|
||||||
@@ -343,7 +342,6 @@
|
|||||||
<field name="qty_in_supplier_rma"/>
|
<field name="qty_in_supplier_rma"/>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</group>
|
|
||||||
</page>
|
</page>
|
||||||
<page name="other" string="Other Info">
|
<page name="other" string="Other Info">
|
||||||
<group name="general" string="General">
|
<group name="general" string="General">
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# 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, _
|
||||||
from openerp.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
|
|
||||||
|
|
||||||
class RmaAddStockMove(models.TransientModel):
|
class RmaAddStockMove(models.TransientModel):
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from openerp import models, fields, api, _
|
from odoo import models, fields, api, _
|
||||||
from openerp.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT as DT_FORMAT
|
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT as DT_FORMAT
|
||||||
import openerp.addons.decimal_precision as dp
|
import odoo.addons.decimal_precision as dp
|
||||||
|
|
||||||
|
|
||||||
class RmaMakePicking(models.TransientModel):
|
class RmaMakePicking(models.TransientModel):
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
import openerp.addons.decimal_precision as dp
|
import odoo.addons.decimal_precision as dp
|
||||||
from openerp import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
from openerp.exceptions import ValidationError
|
from odoo.exceptions import ValidationError
|
||||||
|
|
||||||
|
|
||||||
class RmaLineMakeSupplierRma(models.TransientModel):
|
class RmaLineMakeSupplierRma(models.TransientModel):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
<!-- Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||||
<openerp>
|
<odoo>
|
||||||
<data>
|
<data>
|
||||||
<record id="view_rma_order_line_make_supplier_rma"
|
<record id="view_rma_order_line_make_supplier_rma"
|
||||||
model="ir.ui.view">
|
model="ir.ui.view">
|
||||||
@@ -85,5 +85,5 @@
|
|||||||
|
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</odoo>
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
from openerp import models, fields
|
from odoo import models, fields
|
||||||
|
|
||||||
|
|
||||||
class StockConfigSettings(models.Model):
|
class StockConfigSettings(models.TransientModel):
|
||||||
_inherit = 'stock.config.settings'
|
_inherit = 'stock.config.settings'
|
||||||
|
|
||||||
group_rma_delivery_address = fields.Selection([
|
group_rma_delivery_address = fields.Selection([
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<openerp>
|
<odoo>
|
||||||
<data>
|
<data>
|
||||||
<record id="view_stock_config_settings_rma" model="ir.ui.view">
|
<record id="view_stock_config_settings_rma" model="ir.ui.view">
|
||||||
<field name="name">stock.config.settings.rma</field>
|
<field name="name">stock.config.settings.rma</field>
|
||||||
@@ -14,4 +14,4 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user