mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[9.0][FIX] rma:
* fix assignment of moves. * default qty in rma lines. * remove account dependency. * test and flake8 fixes.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
from openerp import _, api, fields, models
|
from openerp import _, api, fields, models
|
||||||
from openerp.addons import decimal_precision as dp
|
from openerp.addons import decimal_precision as dp
|
||||||
|
|
||||||
|
|
||||||
class RmaOrderLine(models.Model):
|
class RmaOrderLine(models.Model):
|
||||||
_inherit = "rma.order.line"
|
_inherit = "rma.order.line"
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +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)
|
||||||
|
|
||||||
import time
|
from openerp import _, api, fields, models
|
||||||
from openerp import models, fields, exceptions, api, _
|
|
||||||
from openerp.exceptions import ValidationError
|
from openerp.exceptions import ValidationError
|
||||||
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT as DT_FORMAT
|
|
||||||
import openerp.addons.decimal_precision as dp
|
|
||||||
|
|
||||||
|
|
||||||
class RmaAddSale(models.TransientModel):
|
class RmaAddSale(models.TransientModel):
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-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 models, fields, exceptions, api, _
|
from openerp import api, fields, models
|
||||||
|
|
||||||
|
|
||||||
class RmaMakePicking(models.TransientModel):
|
class RmaMakePicking(models.TransientModel):
|
||||||
@@ -13,6 +13,7 @@ class RmaMakePicking(models.TransientModel):
|
|||||||
res['sale_line_id'] = line.sale_line_id.id
|
res['sale_line_id'] = line.sale_line_id.id
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
class RmaMakePickingItem(models.TransientModel):
|
class RmaMakePickingItem(models.TransientModel):
|
||||||
_inherit = "rma_make_picking.wizard.item"
|
_inherit = "rma_make_picking.wizard.item"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-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 models, fields, exceptions, api, _
|
from openerp import _, api, fields, models
|
||||||
import openerp.addons.decimal_precision as dp
|
|
||||||
from openerp.exceptions import ValidationError
|
|
||||||
|
|
||||||
|
|
||||||
class RmaRefund(models.TransientModel):
|
class RmaRefund(models.TransientModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user