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_price
is computed field without store=True So it can store the data intopostgres
database.If you want to update the field value, You can make the
server-action
following step:Product Template
Update the Record
Cost (product.template)
Value
112
make the
Create Contextual Action
Goto
Product template
andrefresh
the page on theaction
you can find the created server action and execute.