summaryrefslogtreecommitdiff
path: root/addons/partner_autocomplete/static/src
AgeCommit message (Collapse)Author
2019-03-08[FIX] web,*: adapt autocomplete dropdowns after jquery updateAaron Bohy
*partner_autocomplete,test_main_flows In jQuery 3, the active element in autocomplete dropdowns is no longer identified with class 'ui-state-focus' on the <li/>, but with class 'ui-state-active' is on its child <a/>. Moreover, the background color of the active element is now set on the <a/> instead of the <li/>. This rev. adapts scss rules accordingly, and selectors in the main_flow_tour. Issue reported on the jquery update pad. closes odoo/odoo#31693 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-03-06[REF] partner_autocomplete: adapt code after jQuery updateVincent Schippefilt
Part of task 1896658 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Christophe Matthieu <chm@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: David Monjoie <dmo@odoo.com> Co-authored-by: Martin Geubelle <mge@odoo.com> Co-authored-by: svs-odoo <svs@odoo.com> Co-authored-by: Vincent Schippefilt <vsc@odoo.com>
2019-01-14[MERGE] forward port branch 12.0 up to 6a0675d36ddChristophe Simonis
2019-01-11[FIX] partner_autocomplete: ignored field is sent to viewPierre Rousseau
The field ignored is set in javascript on company object to filter the ones we want to show. As it is not an odoo field, it triggers a traceback when the trigger_up 'field_changed' is called. OPW-1921568 closes odoo/odoo#30153
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2019-01-03[FIX] partner_autocomplete: ignored field is sent to viewPierre Masereel
The field ignored is set in javascript on company object to filter the ones we want to show. As it is not an odoo field, it triggers a traceback when the trigger_up 'field_changed' is called. OPW-1921568 closes odoo/odoo#29864
2018-12-28[FIX] partner_autocomplete: Remove companies from suggestionsAntoine Prieels (ANP)
We wanted to make it possible to manually mark records from the partner_autocomplete service as 'ignored' so that they wouldn't appear in suggestions. Previously, this was done by removing, in the service, records that were marked as 'ignored' from returned suggestions. The problem is that, since the record was not present in odooSuggestions, the data from this company was retrieved from clearbitSuggestions and the company was still present in the dropdown. We fix this problem by also returning ignored companies from the service, marked as 'ignored', so that they can be filtered out after getting additional suggestions from clearbit. closes odoo/odoo#29785
2018-12-03[FIX] base, partner_autocomplete: remove vat from the partner selection fieldlen-odoo
Commit a6e1eb9f0ad285fac7d0ca0b9f89f046d78ec9c7 introduced the show_vat context key, that displays the Tax ID of a customer after its name when present, similarly to show_address. However it appears on the field when being edited, then disappears at save, which is confusing. Other unclean things tended to happen: you would have "name - taxid" on customer field, but "name" on invoice address and delivery address. Furthermore a client could edit the name manually to erase the Tax ID, and thus recreate a new record for the same customer. We introduce a method to clean the name from the Tax ID, and use it so that it is directly the client's name that is selected at edit. Note that we also replace the standard dash in the 'name - taxid' by a figuredash (‒, U+2012) so as to avoid potential egregious splits because of legitimate customer names. Similar to commit: 3cbfc40303dcc4e5f668050326beb6ff014bf72a (same thing for show_address) opw 1911954 closes odoo/odoo#29189
2018-11-28[IMP] partner_autocomplete: Notify when user out of creditsAntoine Prieels (ANP)
closes odoo/odoo#29309
2018-10-23[FIX] partner_autocomplete: autocomplete not defined in mobilePierre Paridans
Bugfix to prevent traceback in mobile apps due to override of Many2one widget with native implementation. Happens in every form view containing a partner field. Implemented as defensive programming. The goal of the included test is to prevent a silent error for the webclient. It doesn't test the actual behavior in mobile (where there is no DOM for Many2one). Task #1896641 closes odoo/odoo#27967
2018-09-29[FIX] partner_autocomplete: Enrich data even if get logo returns errorTWA
2018-09-25[IMP] partner_autocomplete: diverse improvementsRémi Rahir
- CRON changed to 60min - Fixed display/rendering issues with autocomplete widgets. - Moved 'Insufficient credit' banner - Editable endpoint for partner_autocomplete service
2018-09-25[IMP] iap: Check Credit Widget moved to IAP moduleTWA
2018-09-21[ADD] partner_autocomplete: Added autocomplete on partners fieldsAntony Lesuisse
For Name field or M2O, gives a list of companies Data comes from Odoo IAP Service