From 6190fcbe6402b96cd0b723561b2cfe221ac28234 Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Thu, 23 Feb 2023 12:59:32 +0100 Subject: [PATCH] [IMP] rma_sale: pre-commit stuff --- rma_sale/wizards/rma_add_sale.py | 4 +--- setup/rma_sale/odoo/addons/rma_sale | 1 + setup/rma_sale/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 120000 setup/rma_sale/odoo/addons/rma_sale create mode 100644 setup/rma_sale/setup.py diff --git a/rma_sale/wizards/rma_add_sale.py b/rma_sale/wizards/rma_add_sale.py index c4810f1f..b44af4a5 100644 --- a/rma_sale/wizards/rma_add_sale.py +++ b/rma_sale/wizards/rma_add_sale.py @@ -64,9 +64,7 @@ class RmaAddSale(models.TransientModel): ) rec.show_lot_filter = bool(rec.lot_domain_ids) - lot_ids = fields.Many2many( - comodel_name="stock.production.lot", string="Lots/Serials selected" - ) + lot_ids = fields.Many2many(comodel_name="stock.production.lot", string="Lots/Serials selected") def select_all(self): self.ensure_one() diff --git a/setup/rma_sale/odoo/addons/rma_sale b/setup/rma_sale/odoo/addons/rma_sale new file mode 120000 index 00000000..243aef4e --- /dev/null +++ b/setup/rma_sale/odoo/addons/rma_sale @@ -0,0 +1 @@ +../../../../rma_sale \ No newline at end of file diff --git a/setup/rma_sale/setup.py b/setup/rma_sale/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/rma_sale/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)