Commit Graph
106351 Commits
Author SHA1 Message Date
Christophe Simonis bcddba4e4b [FIX] fields: set attributes before accessing them
If renamed attributes are used, a warning is emit with `repr` of the
culprit field, which need attributes to be set.

Fixes #14036
2016-11-17 13:40:24 +01:00
qsm-odoo 48d5420d7f [FIX] mass_mailing: remove unsubscribe link from test mailing
When using the "Test Mailing" button, a sample mail was sent to a
particular mail address and a text-like unsubscribe link was added
below the mail body. This link was ugly, ununderstandable and useless
as it is test mailing anyway.

To add unsubscribe links to your mail body, use the footer blocks
which contain this kind of link (note: they are inserted by default
in all mail templates).
2016-11-17 11:06:09 +01:00
Jeremy Kersten e01837d2f4 [IMP] web: remove monokai in form widget aceEditor
Keep return line in ViewMode.

Courtesy of @odony
2016-11-16 19:15:08 +01:00
Jeremy Kersten 9a8975be46 [FIX] base: add record, records in context of ir.actions
Purpose is to remove old variables in next version:
    - obj
    - object
    - cr
    - user
    - uid
    - context
    - pool
    - workflow

record = model.browse(env.context['active_id'])
records = model.browse(env.context['active_ids'])

obj, object => record
user => env.user
cr => env.cr
uid => env.user.id
context => env.context
pool => env
workflow => record.signal_workflow()
2016-11-16 18:46:01 +01:00
Denis Ledoux 483024d122 [FIX] product: _compute_currency_id multi-company
By default, the multi-company record rule on
`product.template` is disabled, meaning the products
are shared between the companies.
https://github.com/odoo/odoo/blob/10.0/addons/product/security/product_security.xml#L48

Nevertheless, the multi-company record rule on
`res.company` is well activated, and therefore
this might happen that you can see a `product.template`
for which you are not allowed to read the company.

If you attempt to read something from this company, you must
therefore do it as sudo :)

opw-693209
2016-11-16 18:38:46 +01:00
qsm-odoo a2d05a7087 [FIX] mass_mailing: initialize theme images on re-edition
The mass_mailing editor has a feature which switches the images of the
content and/or the droppable snippets according to the theme.
Unfortunately, this images were only initialized on theme choice and
not when entering in edit mode. So when reediting an already edited
mass mailing (or when duplicating one), the theme images were not
initialized.
2016-11-16 17:06:40 +01:00
Jérome Maes e91ecc89de [FIX] rating: use correct method name 2016-11-16 16:13:08 +01:00
Jérome Maes 75d3121c9c [FIX] im_livechat: correct rating smiley and value for bad rating 2016-11-16 16:13:00 +01:00
Jérome Maes 8cac9d664c [FIX] im_livechat: stop using unsecure controller
Loading history can contains sensitive informations.
You can load the history of a public conversation if
you have its uuid.

This commit stops using unsecure controller when a
secure one for this case exists !
2016-11-16 16:12:52 +01:00
Jeremy Kersten 87184d0894 [FIX] crm: fix tour since kanban state color has been updated
The commit c544aa298 change the color for kanban state, but tour has been
not updated.
2016-11-16 10:53:48 +01:00
Goffin Simon 8b7a4676dc [FIX] account: Communication in register payment from tree view
When using the tree view to pay invoices the reference was never added to the payment as memo.
The memo is filled when directly paying the invoice using the button(Register payment).
Now the same behaviour is done from the tree view and from the form view.

opw:691986
2016-11-16 09:23:16 +01:00
Denis Ledoux c81a63393d [FIX] sale_order_dates: infinite recurssion in effective_date computation
This is due to the below revision
c1cfbf6436

Which used the `write` method on the `order` instead of assigning
the value in the variable `order.effective_date` to set the value,
as it should be done in the new API

opw-693800
2016-11-15 19:51:05 +01:00
Christophe Simonis dece72d010 [MERGE] forward port branch saas-12 up to ca20038 2016-11-15 13:58:55 +01:00
Christophe Simonis ca2003839a [MERGE] forward port branch saas-11 up to 58f68cc 2016-11-15 13:19:55 +01:00
Christophe Simonis 58f68ccb72 [MERGE] forward port branch 9.0 up to 3bad13d 2016-11-15 11:06:15 +01:00
Martin Trigaux 22d7be5b73 [FIX] account_voucher: bad onchange return format
The product_id_change returns a 'value' key, not 'values'

Closes #14274
2016-11-15 11:00:08 +01:00
Leonardo Donelli 814c2e83cc [FIX] hr_timesheet: AccessError editing timesheets
Make department_id of account_analytic_line readonly, so that when the field is written it is not also propagated to the employee, which
may fail when the user has write access to timesheets but not to employees.

Fixes #14084
2016-11-15 10:56:23 +01:00
Goffin Simon 3bad13d650 [FIX] point_of_sale: closing balance access rights
In 9.0 when the pos user was not at least in the group Accountant
(group_account_user), he was not allow to close or open the balance
when the pos session was configured in cash control.

ps:be carefull with the old rule: Point Of Sale Cashbox Line POS User
deleted with a26b805f5e

opw:69251
2016-11-15 09:30:10 +01:00
Nicolas Lempereur f2abde5659 [FIX] base: binary url attachment on windows
On windows when opening a binary file a 'b' flag is to be used:
 https://docs.python.org/2/tutorial/inputoutput.html#reading-and-writing-files

Before this commit, /web/image/* and /web/content/* routes serving
an ir.attachment with url could return empty or truncated content.

opw-693306
2016-11-14 22:44:34 +01:00
Jeremy Kersten 99b68e3278 [FIX] web, website: website_version is an enterprise module
Add widget to specify that this module is an enterprise module.
Fix layout (missing margin between last label and tag enterprise)
Fix behaviour widget_radio, popup was never opened because we
compare the str value with an int value.

This commit is related to #14241
2016-11-14 17:41:20 +01:00
qsm-odoo 2757775ed3 [FIX] web_editor: allow vimeo, youku and undefined video sources again
The refactoring made with https://github.com/odoo/odoo/commit/62fb1bb92493b00bd45ed3f4eced5ca8b23f81d6#diff-2b3acc31ced2b1e9f7522a3e29f33c22L825
broke the possibility to add vimeo, youku or other undefined video
sources.

This is because of jQuery. With jQuery you can create elements thanks to
multiple methods. From least efficient to most efficient:

- All in a string:
$("<tag attr1='value1' attr2='value2'/>");

- Tag in a string, attrs thanks to methods:
$("<tag/>").attr("attr1", "value1").attr("attr2", "value2");

- Tag in a string, attrs in second arg:
$("<tag/>", {attr1: "value1", attr2: "value2"});

The mentionned refactoring transformed the use of the second method
into the use of the last one. But there is a bug in jQuery: you cannot
use the first method and the last one all together. So:

$("<tag attr1='value1'/>", {attr2: "value2"});

will create a tag with attr1 but will totally ignore the attr2 part.

It happens that the allowfullscreen attr was left directly in the
creation string for vimeo and youku, preventing the src to be added.

This commit removes the use of allowfullscreen attr as fullscreen
is already handled by source players anyway.
2016-11-14 17:32:23 +01:00
Christophe Simonis 1c21faafb9 [MERGE] forward port branch 9.0 up to 7be6c74 2016-11-14 17:26:28 +01:00
Uku Lagle f701311f72 [FIX] cli: correct link to module categories file
As the folder openerp no longer exists

Closes #14263
2016-11-14 17:07:44 +01:00
Uku Lagle 0a7c660f7c [CLA] signature for Uku Lagle
Closes #14262
2016-11-14 17:05:50 +01:00
Florent de Labarre 7be6c7404a [FIX] stock: expression error
Without this fix, the button of order rules does not appear in the form with a
product.product model.

Closes #14285
2016-11-14 17:03:15 +01:00
Florent de Labarre f68a304d1d [CLA] Signature fmdl
Closes #14286
2016-11-14 17:03:15 +01:00
Martin Trigaux 014a6e283f [I18N] export 10.0 source terms 2016-11-14 16:57:46 +01:00
David Arnold a35d8895b1 [FIX] base: es_CO date format
Closes #14065
2016-11-14 16:39:37 +01:00
Yenthe V.G 3f605d18ba [FIX] cli: correct templates for scafold
Convert openerp to odoo

Closes #14129
2016-11-14 16:26:23 +01:00
Goffin Simon 57f320aa99 [FIX] website_sale: selected state in billing information
The selected state of the user was not displayed in the billing information
due to the detach function.

opw:693127
2016-11-14 15:52:53 +01:00
stefanorigano 668926ff4f [FIX] website: remove "text-muted" class from "Cover" snippet
Since this snippet comes with a bg image, using 'text-muted' here
caused undesired result. The text may be invisible or difficult to read.
Moreover adding or remove this class is not natively supported by the
editor.

Note: this is not a full stable fix as it requires an update to be
deployed but the fix is not critical and may so be ignored without
breaking anything.
2016-11-14 15:30:13 +01:00
stefanorigano 4cbfdcf07b [FIX] website: correct some snippet structure to ease edition
Wrap the text content of s_button and s_share snippets so that it can
be edited easily (on chrome, the icons which are next to the next give
the user a hard time).

Note: this is not a full stable fix as it requires an update to be
deployed but the fix is not critical and may so be ignored without
breaking anything.
2016-11-14 15:30:13 +01:00
Jeremy Kersten 6b3b18958d [FIX] crm: merge don't tamper fields constant
Based on odoo/odoo@ec6a6782
This commit fix opw-692280

Override from _merge_data in website_crm_partner_assign add 3 fields to
the list of fields to merge.
Before this commit, 3 fields was added at each merge and so the chatter
become very long with many duplicated field.

Bug introducted by migration new api.
2016-11-14 15:21:02 +01:00
Jeremy Kersten bd78bb878e [FIX] google_calendar: field 'class' has been renamed during migration new api 2016-11-14 15:20:15 +01:00
Christophe Simonis f93bada93e [MERGE] forward port branch 9.0 up to fb763f3 2016-11-14 14:56:14 +01:00
Yannick Tivisse 1659ee7196 [FIX] hr_expense: display taxes correctly on expense report
Backport of rev:
https://github.com/odoo/odoo/commit/4c0184923b6565c6b963724a75dea720af155a58 done in 10.0
2016-11-14 14:54:39 +01:00
Christophe Simonis fb763f3a8f [MERGE] forward port branch saas-6 up to b5914e9 2016-11-14 14:50:29 +01:00
Andrea Stirpe 9c1d30303d [FIX] l10n_nl: Use unique 4-digit accounts
In the Netherlands it is customary for small
businesses to configure the Chart of Accounts
with 4-digits account codes.

This scheme is broken when several accounts share
the same 4-digit prefix, which was the case before,
as the truncated codes will not be unique.

Fixes #13853
Closes #14175
2016-11-14 14:43:04 +01:00
Christophe Matthieu f80965dd57 [FIX] web_tour: reject module for mobile preview
issue: depends fail in mobile preview
2016-11-14 14:32:13 +01:00
Christophe Simonis b5914e9ea8 [MERGE] forward port branch 8.0 up to 51561d3 2016-11-14 14:02:41 +01:00
Christophe Simonis 51561d3ac8 [FIX] base: restart server when installing module from apps
When a new module is installed, its controllers and static files should
be available. A restart is required to do so.
2016-11-14 13:45:24 +01:00
qsm-odoo 9305450508 [FIX] website: properly size the default bg for s_big_message
The default background-size for the s_big_message snippet was not
set to "cover" as the "oe_img_bg" class is missing from the snippet
structure. As this change is not critical but should not be merged
in a stable version, this change will be done in master and this
10.0 fix will only force the "cover" value for the default bg thanks
to LESS.
2016-11-14 13:13:53 +01:00
Nicolas Martinelli f910dc5b3d [FIX] product_visible_discount: price currency
Commit 19e3757ffb allows to return the product price without the
discount included in the unit price. However, `lst_price` is always in
the company currency, not in the pricelist currency.

opw-692896
2016-11-14 11:29:37 +01:00
qsm-odoo dfe072cf79 [FIX] website: adapt parallax extensions to 10.0 refactoring
The s_parallax snippet was refactored in 10.0 but this refactoring
broke some snippet extensions such as the s_parallax_slider.
This made the texts disappear once the snippet was resized.
2016-11-14 10:16:46 +01:00
Goffin Simon fcd3d4d315 [FIX] purchase: updating code with _update_name_and_code
When updating the code of a warehouse, there was a missing condition.

opw:693387
2016-11-14 10:04:08 +01:00
Nicolas Martinelli c544aa298f [FIX] crm: kanban color
Commit 4b2091e8c9 introduces a change in the state color of the kanban
view. However, that doesn't match the description.

opw-693540
2016-11-14 09:14:27 +01:00
Odoo Translation Bot 7a800427df [I18N] Update translation terms from Transifex 2016-11-13 03:42:40 +01:00
Odoo Translation Bot fa544c9da0 [I18N] Update translation terms from Transifex 2016-11-13 02:57:18 +01:00
Josse Colpaert 98344e39f3 [FIX] purchase: filter moves to confirm and assign when creating a PO's picking
If a PO with picking is canceled, then reset to draft and confirmed again
two pickings are created. Indeed when creating the picking, moves related
to the PO are confirmed and assigned, even those which were previously
canceled.

This commit ensures that canceled and done moves stay in their state.
This avoid having two pickings for a single PO.
2016-11-10 17:32:49 +01:00
Josse Colpaert 7e15fa59e4 [FIX] mrp: correctly update lot_product_id to final lot for stock.move.lots
When there are 3 different lots reserved for 3 different serial
numbers for the final product, if you do the first finished product, the
finished lot is put on all stock.move.lots even if nothing has been
consumed for it.

This results in traceability report for the first finished lot being linked
to all of lots instead of just the one that was consumed.

Now we update lot_produced_id only on stock.move.lots where quantity_done > 0.
That way it will only links with the correct one.
2016-11-10 17:32:15 +01:00