You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-05-31 00:24:16,090 159591 WARNING blounts.5.14.24 odoo.api.create: The model odoo.addons.fieldservice_vehicle.models.fsm_order is not overriding the create method in batch
Thank ya'll
The text was updated successfully, but these errors were encountered:
I fixed this in my local repo... like so
/field-service/fieldservice_vehicle/models/fsm_order.py
Original section for @api.model
@api.model
def create(self, vals):
res = super(FSMOrder, self).create(vals)
if not vals.get("vehicle_id") and vals.get("person_id"):
self._onchange_person_id()
return res
CHANGED TO:
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
res = super(FSMOrder, self).create(vals)
if not vals.get("vehicle_id") and vals.get("person_id"):
self._onchange_person_id()
return res
No more warning in odoo-server.log... hope I did that correctly.
OCA/OCB odoo v16
upon install of Field-Service v16
2024-05-31 00:24:16,090 159591 WARNING blounts.5.14.24 odoo.api.create: The model odoo.addons.fieldservice_vehicle.models.fsm_order is not overriding the create method in batch
Thank ya'll
The text was updated successfully, but these errors were encountered: