Cédric Krier
3b49568d2d
Add validate_fields to ModelStorage
...
issue11303
review386191002
2022-04-11 23:24:21 +02:00
Nicolas Évrard
1b31f17ea2
Send only the required fields when fetching a readonly view definition
...
issue11134
review380081002
2022-04-08 19:07:13 +02:00
Cédric Krier
fea5768ce7
Forbid to decrease digits of unit of measure
...
issue11187
review364711002
2022-02-17 00:45:45 +01:00
Cédric Krier
5e7d0c76b2
Follow isort formatting
...
issue10928
2021-12-11 17:58:42 +01:00
Cédric Krier
12a7c6f617
Provide digits from unit of measure
...
issue10677
review365801002
2021-08-30 00:27:13 +02:00
Cédric Krier
7eefaf0d23
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:05 +02:00
Cédric Krier
2ddb0d100b
Fix syntax error
...
It comes from a bad application of the patch from issue6314
2020-04-13 18:10:18 +02:00
Nicolas Évrard
f86e82e7aa
Add help text
...
issue6314
review33151002
2020-04-13 17:50:45 +02:00
Cédric Krier
003e3eed33
Set all fields readonly for inactive records
...
issue3747
review295061011
2020-03-17 20:08:12 +01: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
Cédric Krier
10f728aeb9
Add missing enumerate when looping on non modifiable field
...
It is missing since changeset 8c885973a93f.
issue8984
review274691002
2020-01-20 11:12:47 +01:00
Albert Cervera i Areny
1acd473b00
Add shortcut when rounding zero quantity
...
issue8593
review255871003
2019-10-11 22:23:58 +02:00
Cédric Krier
4fa7b4e319
Allow UoM conversion between different categories
...
issue8238
review265151005
2019-07-08 17:34:44 +02:00
Cédric Krier
7f0f84acb9
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier
a7ff9c38ef
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
6f9f1c27cf
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:48 +02:00
Sergi Almacellas Abellana
7ec8035b82
Use deactivable mixin
...
issue4341
review38401002
2018-03-26 14:10:59 +02:00
Cédric Krier
bbbeebb1ac
Enforce digits length on Rounding Precision on Unit of Measure
...
issue7064
review40961002
2018-02-07 01:14:27 +01:00
Cédric Krier
b2ee1756ef
Add ceil and floor as uom rounding methods
...
issue6222
review27041002
2017-02-02 12:11:10 +01:00
Nicolas Évrard
ea0c0ee96c
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:54:58 +01:00
Karla Stenger
8b7f208e9c
Change Uom.round into an instance method.
...
issue4423
review19651002
2016-01-11 10:28:00 -03:00
Karla Stenger
6fe65f9fe2
Remove trailing space in change_uom_rate_title
...
issue5081
review21531002
2015-11-15 17:37:31 -03:00
David Harper
7d6adc34e5
Improve behaviour of Uom.compute_xxx methods
...
issue4647
review9161002
2015-07-29 17:48:28 +02:00
Cédric Krier
e04c6e3157
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:59:33 +02:00
Cédric Krier
b632887743
Fix rounding issue in Uom.round
...
issue4816
review12191002
2015-06-17 08:28:58 +02:00
Cédric Krier
f9ce267ea9
Fix search_rec_name for negative operator
...
In case of negative operator, each subclause must be composed with 'AND'.
issue4559
review14191002
2015-04-05 23:36:13 +02:00
Sergi Almacellas Abellana
0b2645c386
Ensure that uom rounding is always greather than zero
...
issue4502
review8981002
2015-02-24 18:19:58 +01:00
Cédric Krier
0b22d25fd9
Fix most flake8 errors
...
review8771002
2014-12-02 12:55:30 +01:00
Cédric Krier
2d75f02868
New API for on_change
...
issue4203
review8581002
2014-10-29 20:39:55 +01:00
Nicolas Évrard
df5de2f0f0
Remove print statement introduced by changeset 4c22fc0abb7f
2014-07-28 18:26:39 +02:00
Cédric Krier
1bca12de35
Remove UOM from category string
...
review9381002
2014-05-27 22:31:27 +02:00
Jordi Esteve
cfe6283bf5
Use OR clause in search_rec_name of UoM
...
issue3705
review3741002
2014-02-24 20:21:33 +01:00
Cédric Krier
bd953e7316
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:29:18 +01:00
Cédric Krier
57085a04f6
Use a sequence of records, values in write
...
issue3499
review1641003
2013-12-19 14:45:07 +01:00
Nicolas Évrard
ad55a084c2
Fix usage of return in validation method
...
review1126002
2013-10-15 15:09:04 +02:00
Cédric Krier
f176fea97c
Fix flake8
2013-10-05 12:17:07 +02:00
Cédric Krier
59ecc988a8
Migration to python-sql
...
review1001002
2013-09-06 22:34:24 +02:00
Cédric Krier
deafd5f252
Fix domain concatenation between list and tuple
2013-08-08 02:33:53 +02:00
Albert Cervera i Areny
ecbd21155b
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:55:11 +01:00
Cédric Krier
99450860fe
Fix flake8
2013-02-24 14:18:51 +01:00
Cédric Krier
73e5c53949
Active Record
2012-09-24 22:18:00 +02:00
Cédric Krier
bbe639d663
Fix pep8 and pyflakes
2012-04-03 20:07:18 +02:00
Cédric Krier
775423b5dd
Replace wrong usage of False by None
...
issue2512
2012-03-27 10:43:45 +02:00
Cédric Krier
3f9ddfa095
Remove special uom search clause
...
review294001
2012-03-25 15:38:44 +02:00
Cédric Krier
cc9265d9cb
default_active must return a boolean
2012-03-24 09:28:27 +01:00
Nicolas Évrard
997929fed0
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 18:38:50 +01:00
Nicolas Évrard
2af61df6ea
fix pyflake errors
...
review165007
2011-11-02 16:10:39 +01:00
Nicolas Évrard
37bf0861fb
remove trailing spaces
2011-10-28 10:57:31 +02:00
Cédric Krier
dfd989b6f0
Make PYSON more Pythonic
2011-08-21 11:20:46 +02:00
Cédric Krier
1595175929
Add test for depends
2011-08-04 16:57:33 +02:00