I am trying to change the cost price of products in Odoov13 in postgresql database, can anyone please support me with an example or guide? The question is simple, there is a selling price and a cost price (standard price) on the products, I just try to change the cost price, not the selling price, but I don't know how to get to the table or column, the Only reference I have is that the value can be stored in property field, but I don't know how to access it.
SELECT * FROM ir_property WHERE name = 'standard_price';
Fini
The field
standard_priceis computed field without store=True So it can store the data intopostgresdatabase.If you want to update the field value, You can make the
server-actionfollowing step:Product TemplateUpdate the RecordCost (product.template)Value112make the
Create Contextual ActionGoto
Product templateandrefreshthe page on theactionyou can find the created server action and execute.