I'm trying to create an invoice from a custom model using an automated action from Studio.
I'm new to python and odoo. I'm familiar with c# and visual studio. (My first language was PL/1)
pricelist = record.x_studio_many2one_field_n1iIa (pricelist field)
for x in record.x_studio_many2many_field_obFyH: (product)
price = pricelist._get_product_price(x.id, 1, record.x_studio_partner_id)
log("Price is " + str(price))
The error I'm getting is: AttributeError: 'int' object has no attribute '_name which is coming from _compute_price_rule
See full error here