Commit Graph
105869 Commits
Author SHA1 Message Date
Thibault Delavallée e03352db0b [REM] portal_sale: remove now void module 2016-10-12 15:11:27 +02:00
Thibault Delavallée 3ff2f81194 [IMP][MOV] portal_sale, sale, account: move portal stuff into right addon
* [MOV] sale and invoice portal related code from portal_sale to
   website_portal_sale. Security rules and website related stuff should
   indeed be located in website_portal_sale.
 * [MOV] sale and invoice standard code to sale and account. Adding customer
   as follower is a standard feature for sale orders and invoices.
 * [IMP] website_portal_sale does not depend from portal_sale anymore but sale
   and other portal / website addons
2016-10-12 15:11:27 +02:00
Thibault Delavallée 9a7df943f5 [REM] portal_sale: remove weird override of mail_mail processing
This code seems to add recipients of an email to the sale order followers.
However currently the custome of a sale order is already automatically
added in the followers. Adding other recipients should not be
something completely custom in sale order, moreover by overriding
mail_mail methods.

People should add followers when necessary and should avoid adding
too many people automatically. When you send an email to other people
than the customer those will be added as followers when replying.
2016-10-12 15:09:31 +02:00
Thibault Delavallée 8d096af9ea [MOV] account: rename mail template file according to guidelines 2016-10-12 15:09:31 +02:00
dbh 0f19e9fff2 [IMP] product : remove unused or useless tooltip on product filter in product search view. 2016-10-12 11:30:05 +02:00
Nicolas Martinelli 4dcf54e23f [FIX] sale, purchase: tax computation
Set the company rounding policy to "Round Globally". Create the
following SO (or PO), with a 7 % excluded tax:
- Qty      Price
- 880.000  5.79
- 120.000  4.36
- 28.000   2.88
- 68.000   11.09
- 35.000   5.20
- 35.000   5.32

The total tax on the SO is 477.48, while it is 477.50 on the invoice
generated from the SO.

Fixes #13687
opw-690090
2016-10-11 15:27:19 +02:00
David Monjoie db312e97b2 [FIX] payment_{payumoney,stripe}: remove wrong license 2016-10-11 10:57:52 +02:00
Nicolas Martinelli 9ab6af8f01 [IMP] web: move "Activate Assets Debugging"
It is more logical to display it next to "Leave the Developer Tools"
2016-10-10 10:16:16 +02:00
Nicolas Martinelli 6c3ec9b053 [FIX] web: remove "Disable/Enable Technical Features"
This link was useful when the "Technical Features" group was not linked
to the "?debug" parameter. This is not the case anymore, and this button
has no effect.
2016-10-10 10:14:46 +02:00
Simon Lejeune 0dc03fae2c [FIX] packaging: version info 2016-10-02 15:26:18 +02:00
Christophe Simonis c8cc54559b [MERGE] forward port branch 10.0 up to 91a1448 2016-09-30 17:23:30 +02:00
Christophe Simonis 91a1448825 [MERGE] forward port branch saas-13 up to c813dbf 2016-09-30 17:22:33 +02:00
Christophe Simonis c813dbf068 [MERGE] forward port branch saas-12 up to 84429ab 2016-09-30 17:21:34 +02:00
Ravi Gadhia 89c78e40cb [ADD] MRP: Add pdf viewer widget to view 'pdf' work instruction of workorder. 2016-09-30 16:31:46 +02:00
Christophe Simonis 84429ab984 [MERGE] forward port branch saas-11 up to 9048865 2016-09-30 16:07:07 +02:00
Christophe Simonis 9048865f23 [MERGE] forward port branch 9.0 up to da388aa 2016-09-30 15:49:02 +02:00
Christophe Simonis da388aa192 [MERGE] forward port branch saas-6 up to eb4f030 2016-09-30 15:37:25 +02:00
Christophe Simonis eb4f0309a9 [MERGE] forward port branch 8.0 up to 295f627 2016-09-30 15:35:57 +02:00
Jeremy Kersten e2fb1cb6ce [FIX] web_editor: add missing import
Thanks to my Linter...
2016-09-30 15:11:58 +02:00
Jeremy Kersten 20861b482a [FIX] website: fix customize_template_get
broken by e11f23b
If not full, result was always empty

This commit fix the list of view when you click on Customize top menu in website.
This menu should only display the 'customize_show' views.
2016-09-30 15:11:58 +02:00
Jeremy Kersten 274b1dabb9 [FIX] website: reset full to False by default
Studio altered (probably by error) the default value.
We reset the old default value, and by security, add the params in the call
2016-09-30 15:11:58 +02:00
Jeremy Kersten 1c6bad5f86 [IMP] website: rename default website for demo data 2016-09-30 15:11:58 +02:00
Thibault Delavallée cd333db807 [IMP] project: set name and responsible always tracked 2016-09-30 14:39:31 +02:00
Thibault Delavallée 8acd298a56 [FIX][IMP] mail: make tracking great again
When changing tracking mecanism in v9 'always' tracked fields lost their meaning.
They were managed like 'onchange' fields. This commit sets the old behavior back.

 * 'onchange' fields are displayed in tracking every time they change
 * 'always' fields are displayed in tracking every time they change or whenever
   other tracking exist; those are used to display some contextual
   information
2016-09-30 14:39:31 +02:00
Denis Ledoux 30656599de [FIX] account_asset: asset creation from a vendor bill
It wasn't possible to validate a vendor bill
using a product with an asset type due to the fact
the `default_type: in_invoice` was propagated through the
context to the asset creation, and `in_invoice` is not a valid
type for an asset.

opw-689897
2016-09-30 14:08:56 +02:00
Denis Ledoux ae5c6ce344 [FIX] http: fix jsonp, session_id no longer exists
`session_id` is deprecated,
`session.sid` must be used instead.

This is similiar to the revision
4033ccc129
2016-09-30 14:08:19 +02:00
Nicolas Lempereur c8ca71fc62 [IMP] stock_account: stock_history slow read_group
On a given instance with 600 000 stock.history, the query changed by
this commit takes:

- before this change => 32 minutes
- after this change => 20 seconds

opw-685747
2016-09-30 12:58:45 +02:00
Thibault Delavallée 00aab045b0 [FIX] sale: fix context update wrongly migrated / updated at 94716a3f14
Purpose of the code is to automatically add the recipients of quotation emails
as followers. It is done using the mail_post_autofollow context key. However
current code add the context key in all cases and not just when composing
a message on sale order.
2016-09-30 12:37:02 +02:00
Simon Lejeune 76c443eda3 [REL] 10.0rc1 2016-09-30 12:26:30 +02:00
qsm-odoo 2432a1296a [FIX] website: load customize menu at once if already opened
Following commit 3cbc7ebc4c, the bug for customize menu
could have been ignored but as it is an easy fix :

The customize menu is filled after a rpc which is performed on
mousedown on the menu toggle. But in the case the user clicked on the
customize menu before the mousedown handler was attached... nothing
occured. It is possible since the customize menu is rendered but its
JS widget is only attached to it once everything is ready.

Now, the menu is filled on first mousedown or if the menu is already
opened when the JS widget is attached.
2016-09-30 12:22:56 +02:00
qsm-odoo 3cbc7ebc4c [FIX] *: missing base.ready() waiting for frontend tours
Frontend tours have to wait for base.ready() before starting otherwise
they can find DOM elements whose event handlers have not been attached
yet.

Note that this is a workaround to ignore these real "bugs" as users
should not be able to see buttons they can't click at once but there is
no safe and small fix which will resolve that. The time between the DOM
becomes visible and handlers are attached is small enough to ignore
this bug for now anyway.
2016-09-30 12:19:46 +02:00
qsm-odoo 984afdf120 [FIX] mass_mailing, web_editor: set up correct iframe communication
Previous commit tried to handle iframe assets in a more standard way
but instead broke the order followed to install iframe communication.

While waiting for a more clean way to handle iframe assets and
communication, revert to old set up.
2016-09-30 12:19:46 +02:00
qsm-odoo c7e837d962 [IMP] mass_mailing, web_editor: propose installation of mass_mailing_themes
When an user starts a new mail template, he is now proposed to upgrade
to enterprise to install mass_mailing_themes.
2016-09-30 12:19:46 +02:00
qsm-odoo 8320a9aaf5 [IMP] mass_mailing: only keep one theme in community module
Only keep default theme in community module and replace old enterprise
ones with new ones.
2016-09-30 12:19:39 +02:00
qsm-odoo eee1d8c159 [IMP] mass_mailing: prevent drag and drop in kanban for mass mailing
The mailing flux is done thanks to the action buttons in form view.
2016-09-30 12:15:50 +02:00
=?UTF-8?q?St=C3=A9phane=20Bidoul=20=28ACSONE=29?= 389c2ba97b [REF] packaging: make odoo a namespaced package
by auto-extending addons path with odoo.addons.__path__.

This patch also introduce
  * an explicit declaration of odoo.addons as a namespace package
    This is necessary because the standard way of declaring namespace
    packages in setup.py does not work as long as odoo/__init__.py
    contains code.
  * a more reliable way to find odoo root path.
2016-09-30 12:05:49 +02:00
Simon Lejeune ffd3c513ed [REF] core: renamed openerp-wsgi.py to setup/odoo-wsgi.example.py 2016-09-30 12:05:49 +02:00
Christophe Simonis 467a958ab0 [FIX] core: handle gevent on command line correctly 2016-09-30 12:05:49 +02:00
Simon Lejeune 630b4b1d55 [REF] cli: renamed .rc configuration file
A fallback for .openerp_serverrc has been implemented. If both
are present, Odoo will crash and report.
2016-09-30 12:05:49 +02:00
Simon Lejeune c59eb4ffc1 [REF] packaging: renamed configuration files
no fallbacks were implemented to `openerp-server.conf`.
2016-09-30 12:05:49 +02:00
Simon Lejeune 740a959e05 [REF] packaging: rpm: depend on python-babel 2016-09-30 12:05:49 +02:00
Simon Lejeune cee7cc5274 [REF] packaging: redhat: use fedora for testing
Creating a centos docker image fails on our nightly server with
this issue: https://github.com/docker/hub-feedback/issues/461

To create a centos image, we used another repository to host the
image and we make it build in docker hub, then we pulled it. It
was getting really annoying.
2016-09-30 12:05:49 +02:00
Simon Lejeune 01b69fbe75 [FIX] packaging: redhat: depends on babel 2016-09-30 12:05:49 +02:00
Simon Lejeune ed8f0c83c4 [REF] cli: renamed openerp-server to odoo-bin
The use of an entry point was considered in order to provide
an `odoo` command in the path for the packages users, but the
generated entry point will first check that all the things in
install_requires were provided in a not bright way: it'll check
that it matches a distribution name. This does not work because
python-chart does not have the distrubtion name "pychart" which
is provided by the python-pychart package in debian jessie. Same
for suds-jurko which is provided by python-suds in debian stretch
but does not have the distribution name "suds".

Also, adapted the  packages tests to these cli changes.
2016-09-30 12:05:49 +02:00
Simon Lejeune 2d5fc151a2 [REF] cli: rename odoo.py to setup_dev.py
and move it under the setup package. Since the rename of the
openerp directory into odoo, having a script named "odoo.py"
conflicts with a package named "odoo".
2016-09-30 12:05:49 +02:00
Simon Lejeune ea3d9e69ef [REF] packaging: windows: remove use of version_full
This way we do not have to pass the version as argument. This
was error prone. If the timestamp has to be included in the
version, just patch it during before running package.py. This
was already done in our nightly servers anyway.
2016-09-30 12:05:49 +02:00
Simon Lejeune 7f8ad73618 [REF] packaging: windows: don't hardcode service name
Correctly pass it to the nsis script the same way it was done for
the version and python version. this was a source of error at each
release.
2016-09-30 12:05:49 +02:00
Simon Lejeune 71705e1347 [REF] packaging: windows: bundle postgresql 9.5 2016-09-30 12:05:49 +02:00
Simon Lejeune baf3508222 [REF] packaging: windows: start the correct service name during test 2016-09-30 12:05:49 +02:00
Simon Lejeune bc04ec942f [REF] packaging: debian: remove unneeded recommanded dependencies
They were there since long time but to allow some obscure test
to run. As they don't bring anything let's just drop them.
2016-09-30 12:05:48 +02:00