From 4ff4a681a2c57d7530b0fb1c6b05ba879682ba07 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Mon, 29 Aug 2022 19:05:52 +0000 Subject: [PATCH 1/2] [FIX] rma_sale: backport fix from 15 (tests in 15) --- rma_sale/models/rma.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rma_sale/models/rma.py b/rma_sale/models/rma.py index 660a00aa..878348aa 100644 --- a/rma_sale/models/rma.py +++ b/rma_sale/models/rma.py @@ -11,8 +11,14 @@ class SaleOrderLine(models.Model): def _get_protected_fields(self): res = super(SaleOrderLine, self)._get_protected_fields() context = self._context or {} - if context.get('rma_done') and 'product_uom_qty' in res: - res.remove('product_uom_qty') + if context.get('rma_done'): + if 'product_uom_qty' in res: + res.remove('product_uom_qty') + # technically used by product_cores to update related core pieces + if 'product_id' in res: + res.remove('product_id') + if 'product_uom' in res: + res.remove('product_uom') return res From f7f8097e982dba92aa6918e41495fd451148184b Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Sun, 11 Sep 2022 02:52:37 +0000 Subject: [PATCH 2/2] Support for Flow OdooLocust --- .theia/launch.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.theia/launch.json b/.theia/launch.json index b76ea3b2..287b3398 100644 --- a/.theia/launch.json +++ b/.theia/launch.json @@ -76,6 +76,22 @@ "args": [], "console": "integratedTerminal" }, + { + "name": "Odoo: Locust Load Testing", + "type": "python", + "request": "launch", + "program": "/flow/odoo/Locust/entrypoint.py", + "args": [ + // -f /path/to/locustfiles.py + // -d more-specific-db + "--user", "admin", + "--pass", "admin", + "--host", "localhost", + "--port", "8069", + "--proto", "jsonrpc" + ], + "console": "integratedTerminal" + }, { "name": "Odoo: reload foreground server", "type": "python",