0cf87d1671
In the ecommerce, when adding a product to the cart while having website_sale_options installed the product was added in the cart within the website default language, not in the current language of the visitor. The description of the product was in the default website language (for instance, English) instead of being in the visitor language (for instance, French). The reason is quite simple: With website_sale_options, routes are called in javascript, and these calls do not include the website language within the url to the route (e.g., call to '/shop/modal' instead of '/fr_FR/shop/modal) and the language in the request context is therefore the website default language. The solution proposed here is probably not the cleanest possible, a cleaner solution would be to define a new utility JS function within website javascript to perform Ajax calls, automatically adding the language to the url path according to the current visitor language. Another solution would be to set the lang of the session context to the visitor language, and to use this lang instead of the lang within request.context. Nevertheless, none of the two above solutions can be performed in stable releases, such as 8.0, to avoid any risks. opw-631400 |
||
---|---|---|
addons | ||
debian | ||
doc | ||
openerp | ||
setup | ||
.gitignore | ||
.mailmap | ||
CONTRIBUTING.md | ||
LICENSE | ||
MANIFEST.in | ||
Makefile | ||
README.md | ||
odoo.py | ||
openerp-gevent | ||
openerp-server | ||
openerp-wsgi.py | ||
requirements.txt | ||
setup.cfg | ||
setup.py |
README.md
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
If you are a developer you may type the following command at your terminal:
wget -O- https://raw.githubusercontent.com/odoo/odoo/8.0/odoo.py | python
Then follow the developer tutorials
For Odoo employees
To add the odoo-dev remote use this command:
$ ./odoo.py setup_git_dev
To fetch odoo merge pull requests refs use this command:
$ ./odoo.py setup_git_review