Commit Graph
17 Commits
Author SHA1 Message Date
Cédric Krier 27cd4b6eb0 Check price_decimal configuration
The price_decimal stored in ir.configuration is checked against the current
configuration value. We do not allow to start serving a database for which the
values are different as it may be due to a misconfiguration which can lead to
data corruption.

issue9324
review317381002
2020-05-28 18:22:45 +02:00
Cédric Krier 40d374ae08 Add round_price
We add a common method to round prices that are stored using the price digits.
It is useless to use the digits from the field because it can not be changed in
any other way than by configuration.

issue9146
review299521002
2020-04-23 21:44:00 +02:00
Cédric Krier 8ec0d35758 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:52 +01:00
Sergi Almacellas Abellana 4dad405f84 Add product identifiers
issue7086
review265481006
2019-06-06 19:20:43 +02:00
Cédric Krier 796a821921 Show all products by category
Use an Union to collect all the possible link between product and categories.
This Union is used for the tree_open action on categories to show products
linked by any ways.

issue6794
review42671002
2017-10-02 16:06:36 +02:00
Cédric Krier 887f6efef8 Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:45 +02:00
Cédric Krier 8c5d04920b Remove Property fields
issue2349
review34821002
2017-04-01 00:31:59 +02:00
Cédric Krier 3f98a23c39 Replace category by categories on Template
issue5320
review23791002
2016-03-19 09:05:13 +01:00
Cédric Krier 229b342548 Add configuration for default cost price method
issue3443
review23711002
2016-01-21 10:37:28 +01:00
Cédric Krier 0b22d25fd9 Fix most flake8 errors
review8771002
2014-12-02 12:55:30 +01:00
Cédric Krier 73e5c53949 Active Record 2012-09-24 22:18:00 +02:00
Nicolas Évrard 79055b94b6 Use relative imports 2011-12-14 17:04:24 +01:00
Cédric Krier feae900b81 Guidelines 2009-08-28 16:24:58 +02:00
Cédric Krier d5f5624c26 Fix COPYRIGHT 2008-06-23 20:55:06 +02:00
Cédric Krier 1b99f33078 Fix copyright 2008-06-11 08:32:41 +02:00
Cédric Krier e574d25147 Move product template into product.py 2008-05-28 12:59:40 +02:00
Bertrand Chenal b94171e328 Product module, initial commit 2008-03-03 18:36:08 +01:00