Hi Everyone
i have a scheduled action that should run and update some fields.
recordset = env['stock.move.line'].search(['&', ('x_studio_sales_order', '=', False), ('reference', 'ilike', 'WH1/IN/'), ('x_studio_related_field_rnnjz', '!=', False), ('x_studio_date_of_transfer', '=', datetime.datetime.now())])
for record in recordset:
record.write({
'x_studio_received_under_sale_order': record.x_studio_related_field_rnnjz.name,
'x_studio_sales_order': record.x_studio_related_field_rnnjz.id
})
i get no errors, it runs but the fields do not get updated
Do you think there is something wrong in the domain?
I think no need to write '&' in search mechanism or you can check Odoo default.