When changing the state of a project, I need to write a number to the related product. Project and product have a many2many relationship:
Project_model: product_field -> many2many <- Product_model: number_field
This should be possible by adding "Automated Actions" to project model. I tried with something like that:
for record in records:
product = record[('x_product)]
product[('number')] = record.calc_value
When triggering the state change, I get this error:
"Expected singleton: product.template()" while evaluating