Commit Graph
94 Commits
Author SHA1 Message Date
Udo Spallek 6ec7ade059 Always show country name in English language
issue10179
review343871002
2022-03-14 11:13:42 +01:00
Cédric Krier 018484d0d7 Use party identifier to store SIREN and SIRET
issue5834
review397071002
2022-02-13 00:43:49 +01:00
Korbinian Preisler 961505a643 Add attention party to default address format
issue10881
review381221002
2021-12-30 13:45:34 +01:00
Cédric Krier b04bf99e46 Follow isort formatting
issue10928
2021-12-11 17:58:42 +01:00
Cédric Krier 93f9170917 Use all street lines in record name of address
issue10940
review381391002
2021-11-24 01:11:14 +01:00
Cédric Krier 3d0d8538d2 Rename zip into postal code
issue9853
review340411002
2021-03-31 23:59:33 +02:00
Cédric Krier 7925dab37d Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:12 +01:00
Cédric Krier 20a820802d 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 74457703e5 Limit subdivision types on address
issue7554
review49501002
2019-10-08 18:57:22 +02:00
Cédric Krier 65c15ef696 Rename language pattern into language_code
issue8346
2019-07-30 23:30:33 +02:00
Cédric Krier 4ab017c238 Load and update pycountry data from script
issue8346
review285501002
2019-07-30 23:02:46 +02:00
Cédric Krier e00d5c659d Set depends on _autocomplete_domain
This avoid to maintain them on autocomplete_zip and autocomplete_city.

issue8264
review281351002
2019-05-20 15:45:29 +02:00
Cédric Krier caa01fbf10 Add cache management on RPC
issue8233
review257231002
2019-04-08 10:10:40 +02:00
Cédric Krier b184b5996b Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier 1bedcf2427 Add party_name and attention party on address
issue7556
review62301002
2018-08-21 18:59:45 +02:00
Cédric Krier b27276de78 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier c9136ab84d Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:08 +02:00
Cédric Krier 6c5f4f9d70 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:48 +02:00
Sergi Almacellas Abellana c2059a2d60 Use deactivable mixin
issue4341
review38401002
2018-03-26 14:10:40 +02:00
Cédric Krier 1d3584acb7 Improve distinction of address record name
Add building name, first street line and country code on address rec_name.
Also use party full_name instead of rec_name as it is used to format the
address.

issue6926
review41671002
2017-11-15 00:31:05 +01:00
Sergi Almacellas Abellana 44ef1c7eb8 Return blank code for countries without code on full_address
Also don't try to split subdivision code if it has no separator.

issue6412
review38281002
2017-04-06 12:24:31 +02:00
Cédric Krier 0ab856f728 Add help text
issue6309
review26201002
2017-03-16 18:32:07 +01:00
Cédric Krier 6cac1da75a Use coalesce to concatenate streets column in migration
If any of the streets column is null, the result of concat will be null.
So we must coalesce it with empty string.

issue6168
review29141002
2017-01-10 12:52:28 +01:00
Cédric Krier c8e8003131 Add validation of address format
The substitutions "district" and "district_code" have no counterpart in the
address model and are thus replaced with the semantic equivalents "subdivision"
and "subdivision_code".

issue6111
review29831002
2016-12-29 13:42:24 +01:00
Sergi Almacellas Abellana fa53140a52 Use sequence_ordered
issue5105
2016-09-13 14:07:02 +02:00
Cédric Krier a3b40d1007 Improve address design
- Remove streetbis from Address
- Add address format per country and language

issue2327
issue5493
review26541002
2016-09-06 09:18:55 +02:00
Cédric Krier ab7fbc09a3 Change address name label into Building Name
issue5492
review21191002
2016-08-23 18:34:01 +02:00
Cédric Krier 07900d7a2b Restrict subdivision address to first level
If many low level subdivision are filled for a country then the view is slow to
render because the selection widget fetch all of them. It is better to limit
the selection to the first level and let customize module adds new field for
lower divisions.

issue5563
review22011002
2016-06-14 16:22:35 +02:00
Cédric Krier 758790e7e4 Fix address layout for country
Country should be alone on the last line and in capital letter.

issue5494
review22961002
2016-04-21 17:17:53 +02:00
Nicolas Évrard f9cb8c8999 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:54:45 +01:00
Cédric Krier 8b966513af Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:58:26 +02:00
Cédric Krier 91bc80acf4 Fix search_rec_name for negative operator
In case of negative operator, each subclause must be composed with 'AND'.

issue4559
review6221002
2015-04-05 23:32:49 +02:00
Cédric Krier 1e0b4b0f3b Fix most flake8 errors
review8771002
2014-12-02 12:55:24 +01:00
Robin Baumgartner eb0c4c087e Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:01:34 +01:00
Cédric Krier 6f19b35671 New API for on_change
issue4203
review8581002
2014-10-29 20:39:49 +01:00
Cédric Krier fa917aa214 Fix typo in _autocomplete_search
Use name variable instead of name string

issue4113
review6481002
2014-09-20 10:44:39 +02:00
Cédric Krier 697f24cb5c Add autocomplete on zip and city
issue4004
review9441002
2014-08-04 16:42:22 +02:00
Jordi Esteve 914b1a4032 Use OR clause in search_rec_name of party and address
issue3706
review3751002
2014-02-25 10:54:03 +01:00
Cédric Krier de730ce10d Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:16 +01:00
Cédric Krier 4bc0f7e116 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:45:04 +01:00
Guillem Barba fdc07e8679 Fix domain concatenation between list and tuple
issue3386
review1099002
2013-09-30 17:43:17 +02:00
Cédric Krier c6d0aaab80 Migration to python-sql
review1001002
2013-09-06 22:34:20 +02:00
Albert Cervera i Areny 04732ae2b0 Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:03 +01:00
Jean Cavallo 4d84501fef Active Record 2012-09-24 22:10:20 +02:00
Cédric Krier e749e86b5d Remove required on sequence
review348001
2012-05-14 15:36:38 +02:00
Cédric Krier 57ceed6f69 Replace wrong usage of False by None
issue2512
2012-03-27 10:43:41 +02:00
Nicolas Évrard 7abf2ff3f7 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
Mathias Behrle 4ce8a4b54e Change select=1|2 to select=True
issue2305
review269003
2012-03-05 10:53:03 +01:00
Cédric Krier b2fc142aba Remove change_default on fields
issue2249
review213001
2011-12-22 22:05:25 +01:00
Cédric Krier d566d24514 Make PYSON more Pythonic 2011-08-21 11:20:44 +02:00