25a8b507b130453439bcf727e5a9ed087418cc84
Before this commit, at multiple places to check if we were in a frontend context we would check if `request and hasattr(request, 'website')` and then access `request.website`. Now, we call an utility method to get that website if we are in a frontend context. If not the method will return False. This method will be usefull for incoming pricelist fixes & tests. Indeed, we will have more check of that kind and this will be easier to mock as mocking this method will be enough, instead of mocking every method doing that if condition to simulate a frontend context (to do website tests in python wihout having to go frontend with a tour).
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, 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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%