mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[IMP] rma_sale_mrp: black, isort, prettier
This commit is contained in:
@@ -8,7 +8,9 @@ class Rma(models.Model):
|
||||
_inherit = "rma"
|
||||
|
||||
phantom_bom_product = fields.Many2one(
|
||||
comodel_name="product.product", string="Related kit product", readonly=True,
|
||||
comodel_name="product.product",
|
||||
string="Related kit product",
|
||||
readonly=True,
|
||||
)
|
||||
kit_qty = fields.Float(
|
||||
string="Kit quantity",
|
||||
|
||||
@@ -98,10 +98,12 @@ class TestRmaSaleMrp(SavepointCase):
|
||||
self.assertEqual(rma_2.mapped("product_uom"), move_2.mapped("product_uom"))
|
||||
self.assertEqual(rma.state, "confirmed")
|
||||
self.assertEqual(
|
||||
rma_1.mapped("reception_move_id.origin_returned_move_id"), move_1,
|
||||
rma_1.mapped("reception_move_id.origin_returned_move_id"),
|
||||
move_1,
|
||||
)
|
||||
self.assertEqual(
|
||||
rma_2.mapped("reception_move_id.origin_returned_move_id"), move_2,
|
||||
rma_2.mapped("reception_move_id.origin_returned_move_id"),
|
||||
move_2,
|
||||
)
|
||||
self.assertEqual(
|
||||
rmas.mapped("reception_move_id.picking_id")
|
||||
|
||||
@@ -86,12 +86,16 @@ class SaleOrderRmaWizard(models.TransientModel):
|
||||
class SaleOrderLineRmaWizard(models.TransientModel):
|
||||
_inherit = "sale.order.line.rma.wizard"
|
||||
|
||||
phantom_bom_product = fields.Many2one(comodel_name="product.product",)
|
||||
phantom_bom_product = fields.Many2one(
|
||||
comodel_name="product.product",
|
||||
)
|
||||
kit_qty_done = fields.Float(
|
||||
readonly=True,
|
||||
help="Used to inform kit qty used in the rma. Will be useful to refund",
|
||||
)
|
||||
per_kit_quantity = fields.Float(readonly=True,)
|
||||
per_kit_quantity = fields.Float(
|
||||
readonly=True,
|
||||
)
|
||||
phantom_kit_line = fields.Boolean(readonly=True)
|
||||
|
||||
@api.depends("picking_id")
|
||||
|
||||
1
setup/rma_sale_mrp/odoo/addons/rma_sale_mrp
Symbolic link
1
setup/rma_sale_mrp/odoo/addons/rma_sale_mrp
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../rma_sale_mrp
|
||||
6
setup/rma_sale_mrp/setup.py
Normal file
6
setup/rma_sale_mrp/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user