diff --git a/addons/website/data/website_data.xml b/addons/website/data/website_data.xml
index 44dbd3a00f0..a12909337ff 100644
--- a/addons/website/data/website_data.xml
+++ b/addons/website/data/website_data.xml
@@ -27,7 +27,7 @@
- public
+ Anonymouspublicpublic
diff --git a/addons/website_quotation/controllers/main.py b/addons/website_quotation/controllers/main.py
index e63d43ee007..52decbe6ab2 100644
--- a/addons/website_quotation/controllers/main.py
+++ b/addons/website_quotation/controllers/main.py
@@ -37,13 +37,13 @@ class sale_quote(http.Controller):
# use SUPERUSER_ID allow to access/view order for public user
# only if he knows the private token
order = request.registry.get('sale.order').browse(request.cr, token and SUPERUSER_ID or request.uid, order_id)
- if token:
+ if token and not message:
assert token == order.access_token, 'Access denied!'
body=_('Quotation viewed by customer')
self.__message_post(body, order_id, type='comment')
days = 0
if order.validity_date:
- days = (datetime.datetime.strptime(order.validity_date, '%Y-%m-%d') - datetime.datetime.now()).days
+ days = (datetime.datetime.strptime(order.validity_date, '%Y-%m-%d') - datetime.datetime.now()).days + 1
values = {
'quotation': order,
'message': message,
diff --git a/addons/website_quotation/data/website_quotation_demo.xml b/addons/website_quotation/data/website_quotation_demo.xml
index 7d18280d276..0f8fee26364 100644
--- a/addons/website_quotation/data/website_quotation_demo.xml
+++ b/addons/website_quotation/data/website_quotation_demo.xml
@@ -52,23 +52,6 @@
QF13
-
- Advanced Account Functional
-
-
- 50000.0
- 750000.0
- service
-
-
- Learn directly from our team and network of OpenERP experts. Choose from the available training sessions for a better functional understanding of OpenERP
-
-
-
-
- QF14
-
-
Partnership Contract
@@ -152,31 +135,6 @@
-
-
Enterprise commissions
-
- As an official partner, you benefit from OpenERP Enterprise
- commissions, according to your partner grade, as well as
- dedicated services restricted to partners like the technical
- support.
-
This course is dedicated to developers who need to grasp knowledge of the business applications development process. This course is for new developers or for IT professionals eager to learn more about technical aspects.
-
-
-
-
-
-
-
-
What you will learn?
-
-
-
-
-
-
Day 1
-
-
Introduction to Javascript
-
-
-
-
Hello World
-
Variables & Operators
-
Dive into Strings
-
Functions
-
Loops
-
Arrays
-
-
-
-
-
-
-
-
-
Day 2
-
-
OpenERP Web Client
-
-
-
-
Introduction to JQuery
-
Advanced JQuery
-
Underscore
-
Introduction to QWeb
-
Controlers and Views
-
Bootstrap CSS
-
Calling the ORM
-
-
-
-
-
-
-
-
-
Day 3
-
-
Building a Full Application
-
-
-
-
Modules
-
Python Objects
-
Report Engine
-
Workflows
-
Training Center Module
-
Integrated Help
-
How to Debug
-
-
-
-
-
-
-
-
-
-
-
Requirements
-
-
-
-
Objectives:
-
-
Having attended this course, participants should be able to:
-
-
-
Understand the development concepts and architecture;
-
Install and administer your own server;
-
Develop a new module for a particular application.
-
-
-
Our prices include:
-
-
-
drinks and lunch;
-
training material.
-
-
-
Requirements:
-
-
-
Bring your own laptop.
-
Participants are expected to have some knowledge in programming. A basic knowledge of the Python programming is recommended.
-
Participants preferably have a functional knowledge of our software (see Functional Training).