summaryrefslogtreecommitdiff
path: root/addons/base_address_extended
AgeCommit message (Collapse)Author
2021-05-16[FIX] base_address_extended: split 'correctly' street nameNasreddin Boulif (bon)
Issue - Install "Contacts" & 'base_address_extended' modules - Go to contacts and create a contact with value: - street name : Chaussee de Namur - House : 40 - Save and edit again - Set country to 'Netherlands' then save. Address not splited well (wrong values for street name and house). The issue is not present in UI but is in tests. (Issue in UI from odoo 14.0+) Cause There is 2 '_split_street_with_params' (inverse function that set street fields): - partner_autocomplete_address_extended (removed in 14.0) - base_address_extended The 'spliting' logic is not the same in both function. In UI, looks like it does not call '_split_street_with_params' from 'base_address_extended' since no super(Partner, self)... However in testing, it does call it from module 'base_address_extended' and therefore trigger the issue. Solution Adapt _split_street_with_params function (in 'base_address_extended' module): If previous field (from 'street_format') to parse in 'street_raw' is 'street_name', then: - set `tmp` to: splitted (max 1 split) street_raw with current field seperator - set `append_previous, sep, tmp[0]` to: splitted tmp[0] (first part of splited street_raw) with `rpartition(' ')` - add 'append_previous' to 'street_name' value - join 'tmp' values and set it to street (should equal to what left from `rpartition(' ')` split + seconf part of first normal split) - continue normal parsing flow opw-2476096 closes odoo/odoo#70783 X-original-commit: d094d2646023965cb3254a31ee8f59aabaf7f2ea Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2021-05-09[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-25[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-31[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-17[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-06[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-29[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-08[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-27[I18N] *: Update translation terms from TransifexMartin Trigaux
Except Spanish, waiting for cleanup closes odoo/odoo#60848 Related: odoo/enterprise#14421 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-21[REV] *: revert fb7407c for spanish translationsOlivier Dony
There was a problem in the Transifex translations for Spanish and all translations were overwritten by mistake with english defaults. This commit reverts all modified es.po files to their previous version while we work to restore the translations on Transifex.
2020-10-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-30[FIX] base_address_extended: Wrong street formatGoffin Simon
Steps to reproduce the bug: - Create a german contact C with street1 = 'Istanbulstraße 22-26' - Install base_address_extended - Go to C and edit it Bug: 'Istanbulstraße' was displayed in the number of the street PS: A post init hook is needed otherwise the default street_format '%(street_number)s/%(street_number2)s %(street_name)s' was always used. opw:2320385 closes odoo/odoo#58903 X-original-commit: a97d981b9dd96b0066e09d763eff10a6ca70819c Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-09-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-01[I18N] export saas-13.5 source termsMartin Trigaux
Without demo data closes odoo/odoo#56839 Related: odoo/enterprise#12821 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-06-18[IMP] *: replace to new _() syntaxMartin Trigaux
Using a few regex like \((_\(.*%s.*)(\) % )([\w\[\]][\w .\[\]\(\)'"]*)\) ($1, $3)) Old syntax is still compatible but starts the migration to the new syntax that catches error.
2020-02-13[I18N] export saas-12.3 source termsMartin Trigaux
closes odoo/odoo#45285 X-original-commit: bb281e98f52a2716f00d43a07446a08df698c1dd Related: odoo/enterprise#8413 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-07[REF] base_address_extended: rename compute / inverse methodsThibault Delavallée
Purpose is to make code follow guidelines so that we understand that some methods are used for computed stored inverse fields. Task ID 2158302 PR odoo/odoo#42678
2020-01-07[MOV] base_address_extended: reorganize python codeThibault Delavallée
Purpose is to reorganize code according to guidelines and split the main badly named python file, to understand that 3 models are impacted: res.company, res.country and res.partner. Task ID 2158302 PR odoo/odoo#42678
2020-01-07[REF] base_address_extended: clean and improve testsThibault Delavallée
Purpose is to make tests easier to understand and more data oriented. We now understand more clearly what is an input and what is expected. Tests about company / partner address fields are added to ensure coherency. Task ID 2158302 PR odoo/odoo#42678
2020-01-07[FIX] base(_address_extended): correctly update company street information ↵Thibault Delavallée
at write Currently when writing on street field of company model, its sub-fields (notably street_name, street_number and street_number2) are not correctly computed again in cache. Indeed address sub fields have no direct trigger as it depends on its partner_id and its partner_id children (see ``res_partner.address_get()`` and ``res_company._compute_address()``). When writing on address fields from the company record, we then invalidate all address fields cache in order to force their computation. This commit adds a new tool method giving the list of fields coming from the address partner to copy upon the company. Task ID 2158302 PR #42678
2020-01-03[REV] base(_address_extended): revert 44221cffacda47a39cdf5f66f15f3d79b732c71bThibault Delavallée
This commit reverts commit 44221cffacda47a39cdf5f66f15f3d79b732c71b called "[FIX] base_address_extended: Fix cache miss bug" . Indeed it fixes the cache miss bug but introduces another one which completely breaks address encoding. How to reproduce * create a company with address bits (street_name, street_number, street_number2); * update one of those fields, e.g. street_number2; * other fields are emptied once saved, e.g. street_name and street_number are False; * both company and its partner records are now incorrect; This is probably due to the unique inverse method introduced by the reverted patch that sends only the updated value to the inverse method, leading to other values being reset. Original task ID 2068145 PR odoo/odoo#42701 X-original-commit: 3f4862ee8c9193719abd8e6dd647e6584f232103 Co-authored-by: Thibault Delavallée <tde@odoo.com> Co-authored-by: Aurélien Warnon <awa@odoo.com>
2019-12-10[I18N] *: remove es_AR translationsMartin Trigaux
Followup of a425695e The terms were back in 12.0 Courtesy of Juan José Scarafía closes odoo/odoo#41624 X-original-commit: 85d0c7001a997748d7691205bbb8d066597591a5 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-11-05[IMP] base_address_extended: Adapt tests to work with/without demo dataYannick Tivisse
2019-10-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-10-01[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-29[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-25[IMP] * : manifest module categories cleanupVictor Feyens
closes odoo/odoo#35754 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-09-09[FIX] base_address_extended: Fix cache miss bugJigar Vaghela
Before this commit: -The company have 3 street fields have separate inverse method this all method is update same partner fields -Partner also has same 3 street fields but have the same inverse method for all street fields -Now the problem is when user company street inverse call then partner inverse also call at that time partner inverse try to access other street fields that not available in a cache so an error occurred. After this commit: -Company 3 street fields have the same inverse method so no cache problem when accessing all street fields in partner inverse method task-2068145 Closes #36568 Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-01[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-08-20[IMP] models: ORM speedupRaphael Collet
This branch is the combination of several optimizations in the ORM: * store field values once in the cache: the cache reflects more faithfully the database, only fields that explicitly depend on the context have an extra indirection in the cache; * delay recomputations by default: use method `recompute` to explicitly flush out pending recomputations; * delay updates in method `write`: updates are stored in a data structure that can be flushed efficiently to the database with method `flush` (which also flush out recomputations); * make method `modified` take advantage of inverse fields to inverse dependencies; * filter records by evaluating a domain on records in Python; * a computed field with `readonly=False` behaves like a normal field with an onchange method; * computed fields are computed in superuser mode by default. Work done by Toufik Ben Jaa, Raphael Collet, Denis Ledoux and Fabien Pinckaers. closes odoo/odoo#35659 Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-08-14[MERGE] forward port branch saas-12.4 up to 98a55917a60Christophe Simonis
2019-08-13[I18N] *: export saas-12.4 source termsMartin Trigaux
2019-07-17[REM] *: calls to @api.multiAdrian Torres
Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
2019-05-13[MERGE] forward port branch saas-12.2 up to 243a4ae5cbcChristophe Simonis
2019-05-10[MERGE] forward port branch saas-12.1 up to 330b99f60c0Christophe Simonis
2019-05-09[MERGE] forward port branch 12.0 up to e11bacfe512Christophe Simonis
2019-05-09[IMP] base{_address_extended}: update Croatia related dataDavor Bojkić
- specify the correct separators on the language - add the address format - add street addres format for croatia closes odoo/odoo#33205 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-05-05[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-05-03[FIX] base{,_address_extended}: extended fields in address formatNicolas Lempereur
In 6c2b54ff there was an optimization that removed extended addresses fields syncing on parent_id, or concerning field update or creation. But the list of fields was also used partly for formatting address which had been supporting extended addresses fields and now does not. With this changeset, we have the extended fields back but only for formatting in a new "_formatting_address_fields". opw-1984608 closes #33144 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-04-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-04-05[MERGE] forward port branch saas-12.2 up to f2be461f090Christophe Simonis