Cédric Krier
f586fc9bc9
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
ec2ca6d49a
Add scheduled task to update rates
...
issue8804
review347191002
2021-02-21 19:31:10 +01:00
Cédric Krier
90856c96f0
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:05 +02:00
Cédric Krier
6593e03c33
Add cash rounding
...
issue1000
review282601002
2020-03-21 16:08:12 +01:00
Cédric Krier
a5ec9ce2d3
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
c7a612e72c
Ensure precision is great enough when rounding
...
The quantize method raise InvalidOperation if the length of the coefficient
after the quantize operation would be greater than precision.
issue6534
review255701002
2019-08-07 19:18:48 +02:00
Cédric Krier
314b157604
Load and update pycountry data from script
...
issue8346
review285501002
2019-07-30 23:02:46 +02:00
Cédric Krier
67bffb6237
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier
7a14bb3950
Remove custom strftime for year before 1900
...
The bug has been fixed in Python 3.3
issue7814
review48671002
2018-10-31 18:15:57 +01:00
Cédric Krier
f26daa7dba
Replace self by cls in classmethod
...
issue7630
review74341002
2018-09-19 00:15:58 +02:00
Cédric Krier
abd4f643df
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Cédric Krier
67f3a12325
Re-enable RPC to compute method
...
- define proper instantiate for RPC
- use int on instance to get id in a more flexible way
issue7228
review45271002
2018-04-05 19:28:12 +02:00
Sergi Almacellas Abellana
1bcc34d3ec
Use deactivable mixin
...
issue4341
review38401002
2018-03-26 14:10:21 +02:00
Sergi Almacellas Abellana
4cd91d96c0
Add help text
...
issue6400
review36281002
2018-01-31 15:40:36 +01:00
Nicolas Évrard
0435687e87
Enforce digits length on Rounding Factor
...
issue7063
review40021002
2018-01-17 10:52:03 +01:00
Cédric Krier
dbc29df63b
Add SQL query for currency by date range
...
issue6944
review42851002
2017-12-26 17:31:44 +01:00
Cédric Krier
c05180c993
Remove monetary formatting from currency
...
issue6927
review42831002
2017-11-25 22:17:02 +01:00
Cédric Krier
b38c5b4f64
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:21 +02:00
Karla Stenger
08a0c0c87e
Remove extra space on invalid_mon_grouping error msg
...
issue5074
review16841002
2015-11-15 17:34:23 -03:00
Cédric Krier
4409c09232
on_change_with_rate must return rate not instance
...
and should not compare date with None
issue4887
review23331002
2015-08-10 11:08:30 +02:00
Cédric Krier
73a0627467
Avoid DeprecationWarning for using getitem on Model instance
...
issue4844
review16401002
2015-07-01 19:33:15 +02:00
Cédric Krier
c6529befe2
Use Constraint instance in ModelSQL._sql_constraints
...
issue4814
review15491002
2015-06-22 16:59:25 +02:00
Cédric Krier
ad79a46cdd
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:41:42 +01:00
Cédric Krier
19631c5455
search_global yields record instead of id
...
It is better for customization to yield record instead of id to prevent to
instantiate a second times the record.
issue4519
review6871002
2015-02-04 13:38:09 +01:00
Cédric Krier
d359a162b2
Fix most flake8 errors
...
review8771002
2014-12-02 12:55:17 +01:00
Cédric Krier
be41515427
Add icon to global search
...
review3511002
2014-02-20 23:27:52 +01:00
Cédric Krier
0ae60badd4
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:29:11 +01:00
Cédric Krier
9d3ba8d800
Clean inaccurate docstring
2014-01-13 16:37:31 +01:00
Cédric Krier
3dca76377f
Fix domain concatenation between list and tuple
2013-08-08 01:45:17 +02:00
Cédric Krier
4ffe539984
get_rate must always return a Decimal or int as value
...
issue3311
review987002
2013-07-29 10:31:28 +02:00
Udo Spallek
9a9b98ea1f
Add missing Active Record migration.
...
issue3085
review738002
2013-03-25 21:11:12 +00:00
Albert Cervera i Areny
b6245751bb
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:54:52 +01:00
Cédric Krier
6670fc2c2a
Fix flake8
2013-02-23 22:05:47 +01:00
Cédric Krier
add391d7d3
Remove ids reference in docstring of Currency.compute
2013-01-16 21:20:58 +01:00
Cédric Krier
3f285bfc5d
Active Record
2012-09-24 22:17:53 +02:00
Cédric Krier
bc57ddd21b
Fix pep8 and pyflakes
2012-04-03 20:07:00 +02:00
Nicolas Évrard
97260b4ef0
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 18:38:55 +01:00
Mathias Behrle
aad1fbade9
Change select=1|2 to select=True
...
issue2305
review269003
2012-03-05 10:53:02 +01:00
Cédric Krier
d3f91620c6
Add default database language code
...
review199002
2012-01-27 21:14:19 +01:00
Nicolas Évrard
a0ea1a2561
fix pyflake errors
...
review163009
2011-11-02 16:09:39 +01:00
Cédric Krier
3753f1444f
Change Pool into a Singleton
2011-07-03 13:18:55 +02:00
Cédric Krier
eaca3deaba
Better docstring explaination for context date usage in compute for issue1745
2011-03-06 04:36:50 +01:00
Phillip Heller
0f1caf4933
Update for new Transaction
2010-08-10 11:58:58 -04:00
Cédric Krier
d16388a664
Catch only Exception according to PEP 352
2010-07-08 19:56:00 +02:00
Cédric Krier
7a3ad42c2d
searcher on Function fields take only one domain clause as argument
2010-03-23 11:24:42 +01:00
Cédric Krier
363b3c1d5e
Remove ids from on_change* calls
2010-03-18 18:19:13 +01:00
Cédric Krier
4d4470ba39
New interface for Function/Property fields
2010-03-11 16:47:49 +01:00
Cédric Krier
2d876c578f
Use pycountry to generate currency datas and add ISO4217 numeric code to
...
currency
2010-02-25 17:53:28 +01:00
Cédric Krier
b84517b8c1
Use datetime_strftime
2009-12-17 11:42:42 +01:00
Cédric Krier
1a64e4aef0
Add rounding option to currency round for issue1147
2009-09-29 12:08:51 +02:00