Commit Graph
39 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 9f7ea1bd54 Prevent domain error when copy products with product suppliers on variants
issue9017
review315221002V
2020-05-01 20:31:02 +02:00
Cédric Krier 4ad111efb9 Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:12 +01:00
Cédric Krier 7869121038 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:53 +01:00
Cédric Krier ba2baf1dca Use a fresh product instance to find best product supplier
This ensure to be able to read all the product suppliers.

issue8723
review284231002
2019-10-24 19:08:07 +02:00
Cédric Krier 9fff3a6a27 Add missing parent depends
issue8712
review258221002
2019-10-16 21:20:29 +02:00
Cédric Krier 4c76757c85 Set company context in product instance
This ensures that the correct value for field depending on the company from
product is used.

issue8690
review252281002
2019-10-01 22:23:55 +02:00
Sergi Almacellas Abellana b9a1d013a6 Add missing end dot on translatable strings
issue8670
review252211037
2019-09-30 09:39:27 +02:00
Sergi Almacellas Abellana 50132daa0c Remove starting wildcard when searching on codes and numbers
issue7347
review64541002
2019-04-11 15:24:46 +02:00
Cédric Krier 21ed59ded1 Allow to define product supplier on variants
issue6799
review66551002
2019-03-15 11:30:21 +01:00
Cédric Krier b9c6fff856 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier e8168fa7fd Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier ff0a58d446 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier 69bc232aad Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:51 +02:00
Cédric Krier 56d311ae57 Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:50 +02:00
Cédric Krier b15f58579d Compare quantity as absolute value and enforce positive quantities
issue7159
review44041002
2018-02-28 18:58:09 +01:00
Cédric Krier 09970ae01d Add product supplier on purchase line
This allows to have a description from the product supplier.

issue3797
review40731002
2017-12-18 17:56:39 +01:00
Cédric Krier ebec4dcc5c Enforce list of unique products for get_sale_price call
issue6941
review37821002
2017-11-21 20:47:31 +01:00
Cédric Krier 55ebc985b3 Ensure quantity from context is a number
The quantity compares with other quantity so it fails on Python3 if quantity is None.

issue6885
review41641002
2017-10-30 09:56:52 +01:00
Cédric Krier 00808db410 Add purchase price on product view from line
issue6407
review34881002
2017-04-02 12:52:15 +02:00
Sergi Almacellas Abellana b002f13553 Use sequence_ordered
issue5105
2016-09-13 14:08:49 +02:00
Nicolas Évrard 3693b96042 Add Python3 support
issue3211
2016-03-04 00:34:21 +01:00
Nicolas Évrard 5ef52928e6 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:21 +01:00
Cédric Krier 4e61a5505b Fix delivery_time migration when delivery_time is None 2016-02-03 22:42:33 +01:00
Cédric Krier c0a9d852d4 Replace Delivery Time by Lead Time on Product Template
issue5275
review16991002
2016-02-02 21:14:52 +01:00
Cédric Krier abaa3ac63e Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:58:42 +02:00
Cédric Krier d3f7cc715f Fix search_rec_name for negative operator
In case of negative operator, each subclause must be composed with 'AND'.

issue4559
review9191002
2015-04-05 23:38:20 +02:00
Cédric Krier da83caebee Remove safe_eval
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
2015-03-09 19:42:02 +01:00
Cédric Krier 6bc8e58015 Use price_digits
issue4438
review6791002
2015-01-06 23:30:57 +01:00
Cédric Krier 640950c212 Fix most flake8 errors
review8771002
2014-12-02 12:55:47 +01:00
Robin Baumgartner 55648dada1 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:02:57 +01:00
Cédric Krier 8d88268e3a New API for on_change
issue4203
review8581002
2014-10-29 20:40:09 +01:00
Cédric Krier c69ecdaa21 Use on_change on default_uom instead of purchase_uom
Changing the value of purchase_uom when it is changed, prevents the user to
select an other value than the default one because when the user remove the
current value it is set back to the default one.

issue4237
review8611002
2014-10-10 10:03:32 +02:00
Cédric Krier 8964366aa4 Add menu entry and fix rec_name for product supplier, add relate to prices
issue3909
review9351002
2014-05-27 22:24:21 +02:00
Cédric Krier 30742297fe Apply the common pattern matching to purchase price
issue3867
review5271002
2014-05-09 23:18:23 +02:00
Cédric Krier b75448c252 Remove duplicate question on warning message
issue3821
2014-04-29 19:23:07 +02:00
Cédric Krier ee986397f8 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:28 +01:00
Cédric Krier 3292c13eac Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:45:20 +01:00
Cédric Krier 253412a0c3 Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.

issue3394
review1119002
2013-10-09 18:25:44 +02:00
Cédric Krier 9fef34b041 Move code in right files following guide lines 2013-09-23 11:53:12 +02:00