Cédric Krier
a3fd1f70e0
Follow isort formatting
...
issue10928
2021-12-11 17:58:44 +01:00
Cédric Krier
170866f70b
Fallback to unit price of 0 when creating forecast moves
...
issue10878
2021-10-19 00:10:09 +02:00
Cédric Krier
b277b93226
Allow locking tables by calling ModelSQL.lock without records
...
issue10785
review359051002
2021-10-03 13:50:33 +02:00
Cédric Krier
a9e37976a9
Provide digits from unit of measure
...
issue10677
review365801002
2021-08-30 00:27:14 +02:00
Cédric Krier
7dc4dfb97f
Replace cursor fetchall by iteration over cursor
...
issue5817
review335831003
2021-03-21 16:09:13 +01:00
Cédric Krier
da0f1271df
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
d1b7665dbd
Add model, record and records attribute on Wizard
...
issue9421
review309861012
2020-07-07 23:56:10 +02:00
David Harper
a519133cd6
Rename move state from cancel to cancelled
...
issue8927
review297851002
2020-06-06 10:30:12 +01:00
David Harper
2c9e58f40d
Rename forecast state from cancel to cancelled
...
issue8927
review323371002
2020-06-04 11:01:07 +01:00
Cédric Krier
903b2f43bc
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:54 +01:00
Cédric Krier
2465778685
Remove global variables used for field definitions
...
They give the false idea that they can be extended or reused which is not the
case.
issue8967
review252851012
2020-01-25 20:18:49 +01:00
Cédric Krier
e264395dce
Do not compute moves in the past and always return a list
...
issue8703
review272251002
2019-10-30 13:23:56 +01:00
Cédric Krier
66911dabeb
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier
a5edf48dfe
Replace SQL check on dates and quantities by domains
...
domains are easier to maintain and provide a better user experience.
issue7940
review56521002
2018-12-23 17:31:51 +01:00
Cédric Krier
e4340fa7e3
Replace self by cls in classmethod
...
issue7630
review74341002
2018-09-19 00:15:59 +02:00
Cédric Krier
c85a77d2d3
Improve ModelStorage.copy
...
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default
issue5576
issue7648
review72291002
2018-09-01 01:02:04 +02:00
Cédric Krier
a30527585b
Use material design icons
...
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier
a13eeb1312
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
35b9ebdd18
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier
65c6ae562a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:55 +02:00
Sergi Almacellas Abellana
059513a30b
Use deactivable mixin
...
issue4341
review38401002
2018-03-26 14:15:20 +02:00
Sergi Almacellas Abellana
099b319474
Add depends on Button
...
issue6919
review40811002
2018-02-19 11:42:01 +01:00
Cédric Krier
e2ec080cc0
Fix searcher methods for dot notation
...
issue6757
review40651002
2017-09-27 18:37:34 +02:00
Cédric Krier
1705085e48
Ensure rec_name is a char, text type
...
Model.default_get with 'default_rec_name' context relies on the fact that
rec_name is a string base field.
issue6630
review36501002
2017-07-26 23:43:27 +02:00
Cédric Krier
0b963de8da
Lock table to check overlap
...
issue5522
review26451002
2016-07-07 10:07:33 +02:00
Cédric Krier
83db0efb8a
Manage readonly state on Forecast Line
...
issue5628
review25211002
2016-06-30 18:56:34 +02:00
Sergi Almacellas Abellana
43048351db
Fix antipatern of create/write in loop
...
issue3516
review13961002
2016-06-20 10:51:02 +02:00
Nicolas Évrard
3b2e4e1839
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:55:43 +01:00
Jonathan Levy
0d8cdd01c8
Add Python3 support
...
issue3211
review24851003
2016-03-01 21:48:31 +01:00
Cédric Krier
74186cd798
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 17:00:01 +02:00
Cédric Krier
cabb8c722a
Make distribute an instance method
...
issue4712
review11211002
2015-05-08 12:47:33 +02:00
Cédric Krier
d6592ae6f3
Deactivate forecast with passed period
...
Instead of filtering on creation date, it is better to deactivate the forecast
if the to_date is in the past.
issue4484
review7871002
2015-01-15 23:55:50 +01:00
Cédric Krier
02cdef74fd
Fix DeprecationWarning about use __getattr__ instead of __getitem__
...
review11791003
2015-01-15 23:54:46 +01:00
Cédric Krier
21c4d31cc2
Fix most flake8 errors
...
review8771002
2014-12-02 12:56:06 +01:00
Robin Baumgartner
4076363596
Use Null constant from python-sql for comparisons
...
issue4143
review13701003
2014-11-24 14:04:03 +01:00
Cédric Krier
f0d427a0ea
New API for on_change
...
issue4203
review8581002
2014-10-29 20:40:26 +01:00
Sergi Almacellas Abellana
ae89b44e90
Use grouped_slice helper.
...
issue3516
review10301002
2014-07-17 19:01:16 +02:00
Robin Baumgartner
f7d380f9fd
Fix typo in context variable
...
issue3860
review5231002
2014-05-06 11:56:52 +02:00
Cédric Krier
f9db7a8143
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:29:38 +01:00
Cédric Krier
e20be16a71
Rationalize relation actions
...
* Remove relation field actions:
- delete_all
- unlink_all
- set
* Rename relation field action unlink into remove
issue3457
review2271002
2013-12-20 12:34:08 +01:00
Albert Cervera i Areny
dc9e871aec
Remove dependency on lines from warehouse and company.
...
review2371002
issue3555
2013-12-18 23:11:14 +01:00
Nicolas Évrard
e726d281e4
Fix usage of return in validation method
...
review1126002
2013-10-15 15:09:22 +02:00
Cédric Krier
1b5bed1dc3
Fix flake8
2013-10-05 12:17:27 +02:00
Cédric Krier
fd214b204e
Migration to python-sql
...
review1001002
2013-09-06 22:34:50 +02:00
Cédric Krier
e356113d8b
Extend Lot Management
...
review845002
2013-06-21 23:24:43 +02:00
Albert Cervera i Areny
3b42722ad2
Fix typos in view names
...
review706005
2013-03-14 00:25:59 +01:00
Cédric Krier
b33308df63
products could be not defined on stock.forecast.complete.choose
...
issue3060
review704004
2013-03-13 09:56:52 +01:00
Albert Cervera i Areny
f831da1139
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:56:03 +01:00
Cédric Krier
b5cd18b0ea
Fix flake8
2013-02-24 16:21:40 +01:00
Albert Cervera i Areny
d00b57dc45
Use a list of dictionaries in create().
...
issue2358
review266002
2013-01-06 22:18:13 +01:00