summaryrefslogtreecommitdiff
path: root/addons/website_customer/controllers
AgeCommit message (Collapse)Author
2020-03-20[IMP] base,contacts,website_customer: rename "Sectors of activity" to ↵nasreddin boulif
"Industries" Purpose of this commit is to improve english wording in Odoo regarding res.partner.industry model. For that purpose we rename "Sectors of activity" with "Industries" everywhere we use that naming. Original feedback #2212682 Task ID #2214290 Closes #47559 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-04[FIX] *: deprecated access to url_ utilities through werkzeug rootXavier Morel
In 0.15 accessing werkzeug.urls functions directly through werkzeug is deprecated, the shortcut will be removed in the eventual werkzeug 1.0. Fix existing uses of these shortcuts. Also cleanup some imports when they're not far from a werkzeug* import being altered.
2018-08-13[IMP] website: res_config_setting make most key website specificJeremy Kersten
google analytics, google map api key, ... can be set by website Remove useless duplicated label Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
2018-02-23[FIX] website_customer: fix sitemap when customer had no countryJeremy Kersten
Before this commit, the sitemap will crash if you have some res.partner without country that are publish and with an assigned_partner_id. Now, we only search for customer with country that are set and avoid to have a traceback: File "/home/odoo/src/odoo/11.0/addons/website_customer/controllers/main.py", line 31, in sitemap_industry loc = '/customers/country/%s' % slug(country['country_id']) File "/home/odoo/src/odoo/11.0/addons/http_routing/models/ir_http.py", line 91, in slug identifier, name = value TypeError: 'bool' object is not iterable
2017-09-27[IMP] website*: clean sitemap + add method to declare sitemap function.Jeremy Kersten
Don't add useless routes or route that will return 404. Improve generate function from ModelConverter to have a better management of query_string. Now we have an helper sitemap_qs2dom that will analyse the current route and check if query string is plausible and if yes, generate a domain, when the query_string don't seems to match the route, we return a Falsy domain. Before this commit, if qs was /product/ipad, enumerate_page check for each modelconverter of the route a name ilike '/product/ipad'. Now we check all routes that contains product and one converter that match ipad or routes that contains ipad and one converter that match product. This commit a new way to declare the sitemap for a route. def sitemap_xx(env, rule, query_string): yield {'loc': '/my_url'} @http.route(..., sitemap=sitemap_xx) In this case, only the loc returned by this function will be in the sitemap for all rules. You can pass sitempa=False, if you don't want that route are into the sitemap
2017-08-08[MOV] website, http_routing: move (un)slug support to http_routingThibault Delavallée
Slug and unslug API is now available in http_routing. Indeed there is no link to any website or any reason to not support slufigied URLs when website is not installed. A new unslug_url method is added as a tool coming from an embedded method from website. Doing it allows to have all slug related methods defined at the same point. Support of slug and unslug in qweb rendering is also moved directly in http_routing version of ir_ui_view instead of website inheritance. This is done in order to keep things coherent. Some code from website about ModelConverter is also moved. Indeed both versions of ir_http uses some kind of placeholder to store the uid when converting urls to python. This commit unifies it by using the website one directly in base to simplify the override. This commit also updates all module importing slug. Enterprise modules will have to be updated, see related commit.
2017-07-18[FIX] P3: absolute ordering removedXavier Morel
2017-06-01[MERGE] Forward-port saas-16 up to ba15df47cb25625cb0921cba554aa0879048c90aOlivier Dony
2017-05-22[IMP] website_customer: Add `Sector of Activity` on customer referencesYannick Tivisse
- Add a "Filter by Industry" filter on top of the "Filter by Country" on the main /customers page. It should work similarly to the filter by "Level" in the /partners page of crm_partner_assign, but would filter on the customer's industry (With "All Industries") etc. - (Cfr www.odoo.com/customers vs www.odoo.com/partners for live examples) - The search input field on the main /customer page should search on the Industry field as well - Add the "Industry" info to the /customers index, e.g. like a badge: http://i.imgur.com/Nzjeck9.png - Add the "Industry" info to the website_customer.details template, e.g. like a badge or in the address block on the left
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2017-04-28[FIX] Various P3-related import changesxmo-odoo
* LDAP import: python-ldap is not python3-compatible, pyldap is Warning: only supported from debian Stretch (current testing)? https://packages.debian.org/search?searchon=names&keywords=pyldap * implicitly relative imports * imports of moved or removed stdlib modules issue #8530
2017-01-23[MERGE] forward port branch saas-11 up to b9374d5c215Christophe Simonis
2017-01-19[FIX] website_customer: filter on correct fieldMartin Trigaux
The field tag_ids has been removed at df2bed3c but not changed in the controller
2016-12-30[FIX] website_customer: error if customer without countriesNicolas Lempereur
For customer without countries, we get False instead of tuple: (country_id, 'country name') Introduced by a35cce2008. opw-703234
2016-12-20[FIX] website_customer: fix new api migrationJeremy Kersten
Avoid traceback 'list indices must be integers, not str' when country_id not in sidebar. env.browse(id).read(['name']) return a list, so country['name'] should be country[0]['name']
2016-08-29[FIX] website, website_{*}: Google Maps API KeyNicolas Martinelli
Partial backport of c82b65c8552a2ddccb9ac9990366c03199ff9d29 opw-686510
2016-08-25[IMP] website, website_{*}: Google Maps API KeyNicolas Martinelli
As of June 22 2016, the use of API key is required to access the following: - Google Maps JavaScript API - Google Static Maps API - Google Street View Image API https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update For domains accessing the API before June 22, it will still work without an API key. Since Google advises to use the API key, we hide the Maps if no API key is defined.
2016-08-10[IMP] various: use odoo for imports instead of openerp and update class namesThibault Delavallée
2016-08-04[REF] website_*: remove `render` method on websiteJérome Maes
Since saas-3, website controllers use `request.website.render` to render the template of a web page. This was kept for retro compatibility. It's time to stop using deprecated stuff. Same for `_render` method on website. 'json' route don't use `request.render` since `JsonRequest` has no `render` method.
2016-08-03[REF] web, *: change deprecated import openerp.addons.web.http to odoo.httpfwi-odoo
We also remove the mock in web as there is no need for it anymore.
2016-07-12[MIG] website_customer : migraton to new apiJérome Maes
2015-02-11[MERGE] forward port of branch 8.0 up to 33a8989Christophe Simonis
2015-02-06[FIX] website_customer: check that customer has a country_idJeremy Kersten
Add country != False in main domain will be not the right fix, because if people doesn't activate the sort by country in customize, they are no reason to hide customer without country_id.
2015-01-19[IMP] website_customer: display filter by tag first, and sort tags by ↵Jeremy Kersten
classname before the name.
2015-01-09[FIX] website_customer: Fixes for review from commit ↵Jeremy Kersten
e5ac65de59f45f2d15ae6f6b840b02cac78afd03 Change xmlid from ir rule Uses odoo unslug function Rename CamelCase variable / function Replace SQL by ORM search Replace 1 by True for boolean Improve name for ir model access Add missing coding Reindent long line Reindent xml Typo singular/plural
2015-01-07[IMP] website_customer: add tags on partners. That allows to sort/filter the ↵Jeremy Kersten
customers on website. Old categories [res.partner.category] (named Tags in UI) was confusing with tags and have been renamed into Categories.
2014-08-20[MERGE] forward port of branch saas-4 up to ddef2ddChristophe Simonis
2014-08-18[FIX] website_customer: the extra / for url pager is not need in saas-4JKE-be
2014-08-13[MERGE] forward port of branch saas-4 up to b49755bDenis Ledoux
The forward port of the fix 3609ba10f2d00a608d8f32334ae1b9a25b34f037 will be done separately, as the mrp scheduler has been completely refactored from saas-5. Conflicts: addons/l10n_be_coda/wizard/account_coda_import.py addons/point_of_sale/static/src/xml/pos.xml addons/procurement/schedulers.py
2014-08-12[FIX] website_customer: the extra / for url pager is not need in saas-4Denis Ledoux
2014-08-12[MERGE] forward port of branch saas-4 up to 7ecaab9Denis Ledoux
2014-08-12[FIX] website_customer: pager with country filterDenis Ledoux
2014-08-01[MERGE] Forward-port saas-4 up to 8b15482Olivier Dony
2014-07-31[FIX] website_customer: check that country id exists before access the name, ↵Jeremy Kersten
else traceback when we come from a non existing id via the url/controller
2014-07-05[MERGE] Forward-port saas-4 up to 5ceded9Olivier Dony
2014-06-30[IMP] website: backport 5112421a (unslug)Jeremy Kersten
Update the regexp to be not case sensitive
2014-05-20[MERGE] forward port of branch saas-4 up to revid bb26deaChristophe Simonis
2014-05-15[FIX] website_partner remove controller, add support for negative idsAntony Lesuisse
2014-05-13[IMP] Invert multilang logic in route decorator. True by default, can be set ↵Fabien Meghazi
to False explicitlty
2014-05-12[FIX] website_{customer,partner,crm_partner_assign}: correct views and ↵Christophe Simonis
controllers
2014-03-14[FIX] website: route and redirect: remove all backslash from urlchm@openerp.com
bzr revid: chm@openerp.com-20140314162346-25vohj6ayp65tgiy
2014-01-30[FIX] website_membership, website_customer: keep search, country and ↵Denis Ledoux
assocations when jumping from each other of these filters + count fix between partners displayed and group by country count + fix country orders in website_customer bzr revid: dle@openerp.com-20140130205713-09cbldm9r9pm6r1i
2014-01-30[FIX]website_customer, website_crm_partner_assign: keep search if jump ↵Denis Ledoux
between countries, and keep countries if do a new search. bzr revid: dle@openerp.com-20140130193706-xxn668p2edr69zue
2014-01-30[FIX] website_customer: keep search even if we change the country, list of ↵Denis Ledoux
country display all countries where there is at least one matching result bzr revid: dle@openerp.com-20140130163639-5z0pt5npgk0t3u8k
2014-01-30[FIX]website_customer: group by country based on the result of the search, + ↵Denis Ledoux
do not display '0' right to All countries if no result + display 'No result found' bzr revid: dle@openerp.com-20140130161132-cbn9z0i7aphzdrbn
2014-01-29[IMP] website_*: remove useless % chars surrounding ilike operand, this is ↵Olivier Dony
the default bzr revid: odo@openerp.com-20140129163557-0bb86mx8it57mcvi
2014-01-29[FIX] website_customer: removed redundant template 'customer_contact', fixed ↵openerp-sle
the country-filtering and avoid showing 'false' when partner has not website_short_description bzr revid: openerp-sle@openerp-sle.home-20140129150838-pj9hmexxl3sk89tp
2014-01-29[FIX] *: using werkzeug.url_encode instead of urllib.urlencode because ↵Denis Ledoux
urliblib.encode does not accept unicode bzr revid: dle@openerp.com-20140129121316-b5f5e4r6fz9l80kq
2014-01-23[REM] Removed preload_recordsFabien Meghazi
This feature will be stripped down and moved to server's ir.http#_dispatch() bzr revid: fme@openerp.com-20140123150448-3hhlj4vytr82k88n
2014-01-20[REM] Removed @website.route() decoratorFabien Meghazi
Need trunk-website-al Rev#5151 bzr revid: fme@openerp.com-20140120153733-ve3dn2kwvha7n3yl