Commit Graph
76 Commits
Author SHA1 Message Date
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
Cédric Krier 99b3466dfb Add test for depends 2011-08-04 16:57:31 +02:00
Cédric Krier ce88de8959 Change Pool into a Singleton 2011-07-03 13:19:00 +02:00
Nicolas Évrard 9f7337da14 Check subdivision field when on_changing country 2011-03-29 16:09:23 +02:00
Phillip Heller 8c5fe32a66 Update for new Transaction 2010-08-10 11:59:01 -04:00
Cédric Krier f35a371b64 searcher on Function fields take only one domain clause as argument 2010-03-23 11:24:23 +01:00
Cédric Krier dc8e4a6ea0 New interface for Function/Property fields 2010-03-11 16:48:37 +01:00
Cédric Krier d23b7e85ae Use PySON 2010-01-20 11:00:56 +01:00
Cédric Krier d504f2906c Change string domain into list 2009-06-23 18:51:05 +02:00
Cédric Krier 72d7c04194 Use the same operator for zip, city and name in search_rec_name 2009-06-23 17:12:04 +02:00
Cédric Krier ace6103475 Change ondelete to upper case 2009-04-07 18:21:44 +02:00
Cédric Krier c073376180 Fix guidelines 2009-03-28 01:50:02 +01:00
Cédric Krier 3af917b066 Set party on address readonly after creation 2009-03-28 01:49:40 +01:00
Cédric Krier 9488c0c381 Fix typo in search_rec_name that created infinite loop 2009-03-24 13:44:11 +01:00
Cédric Krier 9d86c9f9a2 Remove OSV and WizardOSV 2009-02-28 17:00:12 +01:00
Cédric Krier 99008b586d Replace name_get, name_search with get_rec_name and search_rec_name
Return only id for default value of many2one
2009-02-17 11:46:00 +01:00
Cédric Krier 6475834ffb Return dict instead of list for get_full_address 2008-12-12 16:55:04 +01:00
Cédric Krier 9c718772b1 Fix get_full_address for issue533 2008-11-12 22:24:15 +01:00
Cédric Krier c182100fd2 Remove size constraints 2008-10-23 14:04:22 +02:00