mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch '13.0' into 13.0-test
This commit is contained in:
@@ -96,6 +96,22 @@
|
|||||||
"args": [],
|
"args": [],
|
||||||
"console": "integratedTerminal"
|
"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",
|
"name": "Odoo: reload foreground server",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
|
|||||||
@@ -11,8 +11,15 @@ class SaleOrderLine(models.Model):
|
|||||||
def _get_protected_fields(self):
|
def _get_protected_fields(self):
|
||||||
res = super(SaleOrderLine, self)._get_protected_fields()
|
res = super(SaleOrderLine, self)._get_protected_fields()
|
||||||
context = self._context or {}
|
context = self._context or {}
|
||||||
if context.get('rma_done') and 'product_uom_qty' in res:
|
if context.get('rma_done'):
|
||||||
res.remove('product_uom_qty')
|
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
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user