Cédric Krier
4525f90d7f
Remove unused Null import
2021-04-12 22:01:27 +02:00
Cédric Krier
451b9f18da
Call column_is_type only if column exists
...
issue9645
2021-04-12 22:01:08 +02:00
Nicolas Évrard
06104ac96a
Allow column sql types to be tested from the table handler
...
issue9645
review312421002
2021-04-12 20:56:08 +02:00
Cédric Krier
e9d9721435
Add __access__ to Model
...
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Cédric Krier
8ce8293e05
Add symbol widget
...
issue9059
review276871002
2020-10-09 19:09:05 +02:00
Cédric Krier
2782ab96fa
Add model, record and records attribute on Wizard
...
issue9421
review309861012
2020-07-07 23:56:09 +02:00
Cédric Krier
4a128dab38
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:51 +01:00
Cédric Krier
24b737b229
Test both reverse operations to invalidate ratio and divisor
...
When the value has repeating decimal, the comparison may fail for one
comparison but we must consider as valid value.
issue8966
review265001002
2020-01-20 11:06:23 +01:00
Nicolas Évrard
a62a3c5eb3
Use direct access to backend classes
...
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Albert Cervera i Areny
29953a09c7
Fix typo in message id account_invoice.msg_payment_term_missing_last_remainder
...
issue8359
review271411002
2019-05-18 16:08:57 +02:00
Cédric Krier
dd234aba6f
Fix migration to use ir.calendar
...
issue7815
issue7962
2019-01-03 12:00:31 +01:00
Cédric Krier
6b707d747b
Add ir.calendar for month and day
...
This allows to replace time_locale and use the translation infrastructure
instead. So it can be customized using the translation override or derivative
languages.
This provides also a standard base to modules that needs calendar month and
day.
issue7815
review56451002
2019-01-01 15:47:23 +01:00
Cédric Krier
bd7a6163f4
Add ir.message and use custom exceptions
...
issue3672
2018-12-29 14:20:28 +01:00
Cédric Krier
8900f729a9
Remove migration before 3.0
...
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier
d9b40ac0d9
Add __table_handler__ to ModelSQL
...
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Sergi Almacellas Abellana
bb4f96b159
Use deactivable mixin
...
issue4341
review38401002
2018-03-26 14:09:12 +02:00
Cédric Krier
0030150c57
Always raise exception in table handler
...
issue7175
review40161002
2018-03-15 00:44:58 +01:00
Sergi Almacellas Abellana
d61ce251d6
Add default value for payment term line relativedelta's
...
issue6258
review29211002
2017-02-17 10:03:54 +01:00
Sergi Almacellas Abellana
ac38deecaa
Use sequence_ordered
...
issue5105
2016-09-13 14:03:55 +02:00
Sergi Almacellas Abellana
9c559494e8
Copy original amount sign when computing fixed payment terms
...
issue5758
review26491002
2016-08-05 12:29:44 +02:00
Udo Spallek
7797179881
Rename long model name for payment term delta
...
issue5445
review16161002
2016-06-03 21:31:58 +02:00
Sergi Almacellas Abellana
1e54ef271c
Ensure payment term always returns a value
...
issue4286
review26281002
2016-05-25 12:59:48 +02:00
Nicolas Évrard
4e64cedb9e
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:53:42 +01:00
Cédric Krier
c3b6648204
Change payment term percentage into ratio
...
issue5286
review15951002
2016-02-03 21:26:47 +01:00
Cédric Krier
5af5a4c834
Remove boolean expression in order
...
issue4852
review15541002
2015-07-13 23:57:43 +02:00
Cédric Krier
ff0a261389
Allow to define many relativedelta on payment term
...
Replace the set of fields defined on payment term line by a list of
relativedelta containing the same set of fields.
issue4573
review6911002
2015-03-02 23:28:12 +01:00
Cédric Krier
77011c9b6b
Add test wizard for payment term
...
issue4572
review11931002
2015-03-02 23:21:06 +01:00
Cédric Krier
a316785bd0
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:39 +01:00
Robin Baumgartner
f4825c3e0b
Use Null constant from python-sql for comparisons
...
issue4143
review13701003
2014-11-24 13:59:09 +01:00
Cédric Krier
8d96a06bf3
New API for on_change
...
issue4203
review8581002
2014-10-29 20:39:13 +01:00
Cédric Krier
0952177d2f
Use Name string for name field on PaymentTerm
...
issue3820
2014-04-29 19:15:05 +02:00
Cédric Krier
1283b931fb
Use fields.depends decorator
...
issue3487
review2301002
2014-01-26 14:28:52 +01:00
Cédric Krier
5bcfa55544
Migration to python-sql
...
review1001002
2013-09-06 22:33:52 +02:00
Sergi Almacellas Abellana
1c728694b4
Validate payment term when the user creates it.
...
Validate that the payment term has at least a line and ensure that the last
line's type is remainder.
issue3205
review854002
2013-06-01 12:49:14 +02:00
Udo Spallek
e5d5350b89
Signature of raise_user_error is tuple.
...
issue3078
review734002
2013-03-25 10:38:48 +00:00
Udo Spallek
2acb60d276
Missing Active Record migration in PaymentTerm.compute.
...
issue3076
review732002
2013-03-25 10:09:58 +00:00
Albert Cervera i Areny
598767d6d1
Replace _constraints with validate in ModelStorage and improve user messages.
...
issue2616
review371002
2013-03-07 16:54:03 +01:00
Cédric Krier
6fadca7bdd
Fix flake8
2013-02-16 22:06:26 +01:00
Cédric Krier
83d9c368f7
Active Record
2012-09-24 22:17:32 +02:00
Cédric Krier
cef1024645
Remove required on sequence
...
review348001
2012-05-14 15:36:16 +02:00
Cédric Krier
deebd97ee6
Fix pep8 and pyflakes
2012-04-03 20:06:19 +02:00
Cédric Krier
14eb2771b7
Fix pep8 and pyflakes
2012-04-01 18:22:06 +02:00
Albert Cervera i Areny
f720f3b5ea
Payment Term refactoring to make it work like dateutil's relativedelta.
...
review195001
issue2320
2012-04-01 16:08:13 +02:00
Cédric Krier
2b3c0406b6
Replace wrong usage of False by None
...
issue2512
2012-03-27 10:43:07 +02:00
Nicolas Évrard
d30e78697a
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
7d54aff960
correct pyflake errors
...
review162007
2011-11-02 15:51:22 +01:00
Cédric Krier
101d005da2
Make PYSON more Pythonic
2011-08-21 11:20:30 +02:00
Cédric Krier
7d8ed09778
Add test for depends
2011-08-04 16:57:16 +02:00
Cédric Krier
494a91673a
Change Pool into a Singleton
2011-07-03 13:18:43 +02:00
Cédric Krier
8f2821375a
Update for new Transaction
2010-08-19 22:02:49 +02:00