Albert Cervera i Areny
63452dfdbf
Make 'unit_price' the default margin method.
2022-08-11 17:09:51 +02:00
Albert Cervera i Areny
8b1199772b
Move the check to ensure there are no sales to sale.configuration.sale_method.
...
Also, when there's no value stored yet, assume the default cost_price.
Without this change we did not allow to modify other configuration values when
there's no cost_method stored in the configuration yet.
2019-06-19 00:53:14 +02:00
Raimon Esteve
99a163e688
Not allow change sale margin method in case have sales
2019-04-05 14:37:34 +02:00
Albert Cervera i Areny
b372458b2e
Migrate to python 3.
2018-08-18 09:57:24 +02:00
C?dric Krier
dc1e5176d1
Fix style
2018-02-01 17:23:58 +01:00
Raimon Esteve
3f4f5383bd
Remove Property fields
...
issue2349
2017-12-13 12:40:07 +01:00
Raimon Esteve
f0e626ce7e
Allow calculate margin percentatge from unit or cost price
2017-03-23 23:21:22 +01:00