diff --git a/fieldservice_equipment_stock/README.rst b/fieldservice_equipment_stock/README.rst index 3688920bed..007711831d 100644 --- a/fieldservice_equipment_stock/README.rst +++ b/fieldservice_equipment_stock/README.rst @@ -7,7 +7,7 @@ Field Service - Stock Equipment !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:1611123b2193163bada4ee7f794a60e78686102f2ef98400bcba099ace4783df + !! source digest: sha256:60636d35efda73608a27ac5bcaedb6220163f12665a388b90db0d2b4c4d2312e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/fieldservice_equipment_stock/models/fsm_equipment.py b/fieldservice_equipment_stock/models/fsm_equipment.py index 66988c62e8..a89d512c2c 100644 --- a/fieldservice_equipment_stock/models/fsm_equipment.py +++ b/fieldservice_equipment_stock/models/fsm_equipment.py @@ -31,11 +31,12 @@ def _onchange_product(self): self.current_stock_location_id = False @api.model_create_multi - def create(self, vals): - res = super(FSMEquipment, self).create(vals) - if "lot_id" in vals: - res.lot_id.fsm_equipment_id = res.id - return res + def create(self, vals_list): + equipments = super(FSMEquipment, self).create(vals_list) + for equipment in equipments: + if equipment.lot_id: + equipment.lot_id.fsm_equipment_id = equipment.id + return equipments def write(self, vals): res = super(FSMEquipment, self).write(vals) diff --git a/fieldservice_equipment_stock/static/description/index.html b/fieldservice_equipment_stock/static/description/index.html index dd9188dd08..8fba681cfb 100644 --- a/fieldservice_equipment_stock/static/description/index.html +++ b/fieldservice_equipment_stock/static/description/index.html @@ -367,7 +367,7 @@

Field Service - Stock Equipment

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:1611123b2193163bada4ee7f794a60e78686102f2ef98400bcba099ace4783df +!! source digest: sha256:60636d35efda73608a27ac5bcaedb6220163f12665a388b90db0d2b4c4d2312e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/field-service Translate me on Weblate Try me on Runboat

This module is an add-on for the Field Service application in Odoo.