summaryrefslogtreecommitdiff
path: root/addons/mrp/wizard
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-07-10 14:59:37 +0200
committerAdrian Torres <adt@odoo.com>2019-07-17 14:13:12 +0200
commit4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (patch)
treecfd11739fc6b4c0cb4b23b54cc6badad4bf5c55e /addons/mrp/wizard
parentf6fdde96bddfedf8764cd8a73089e44340d476ae (diff)
[REM] *: calls to @api.multi
Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
Diffstat (limited to 'addons/mrp/wizard')
-rw-r--r--addons/mrp/wizard/change_production_qty.py1
-rw-r--r--addons/mrp/wizard/mrp_product_produce.py2
2 files changed, 0 insertions, 3 deletions
diff --git a/addons/mrp/wizard/change_production_qty.py b/addons/mrp/wizard/change_production_qty.py
index e92f053780a..d2fad9cc431 100644
--- a/addons/mrp/wizard/change_production_qty.py
+++ b/addons/mrp/wizard/change_production_qty.py
@@ -39,7 +39,6 @@ class ChangeProductionQty(models.TransientModel):
move[0].write({'product_uom_qty': move.product_uom_qty - qty})
return modification
- @api.multi
def change_prod_qty(self):
precision = self.env['decimal.precision'].precision_get('Product Unit of Measure')
for wizard in self:
diff --git a/addons/mrp/wizard/mrp_product_produce.py b/addons/mrp/wizard/mrp_product_produce.py
index 981547e0e8b..d4f402a16af 100644
--- a/addons/mrp/wizard/mrp_product_produce.py
+++ b/addons/mrp/wizard/mrp_product_produce.py
@@ -85,7 +85,6 @@ class MrpProductProduce(models.TransientModel):
'target': 'new',
}
- @api.multi
def do_produce(self):
""" Save the current wizard and go back to the MO. """
self.ensure_one()
@@ -99,7 +98,6 @@ class MrpProductProduce(models.TransientModel):
todo_quantity = todo_quantity if (todo_quantity > 0) else 0
return todo_quantity
- @api.multi
def _record_production(self):
# Check all the product_produce line have a move id (the user can add product
# to consume directly in the wizard)