setting cost_price readonly when using "average cost price" method

22 views
Skip to first unread message

Maxime Richez

unread,
Mar 1, 2018, 6:48:07 AM3/1/18
to tryton
hi, wondering why field cost_price on variant is not readonly when choosing average cost_price method ? Because if you set any value on the cost_price, it's updated when you recompute cost price... feature ?

Cédric Krier

unread,
Mar 1, 2018, 7:00:09 AM3/1/18
to tryton
On 2018-03-01 03:48, Maxime Richez wrote:
> hi, wondering why field cost_price on variant is not readonly when
> choosing average cost_price method ?

Like that you can set a initial value or correct the computed one.

Indeed it is forbidden to change it when such changes may have impact
and that moves have already been registered.
Example: if the account_stock* modules are installed.

> Because if you set any value on
> the cost_price, it's updated when you recompute cost price... feature
> ?

Yes but normally, if you change the cost price, you will probably also
change it on some stock moves.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages