- Jun 12, 2019
-
-
Martin Trigaux authored
closes odoo/odoo#34068 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Jun 07, 2019
-
-
Lucas Lefèvre authored
This commit reverts commit 492764c5 *Note for forward port* This commit will conflict with 76ee0afb. Keep this version. TL;DR: the fix had unintended effects and the original problem has been fixed by b5c20041 in the mean time. Why the original commit? ------------------------ To know if the current user has the rights to approve/delete a leave, two boolean fields are computed (respectively `can_approve` and `can_reset`). Associated buttons are shown in the form view according to the field values. In the compute methods, the `check_approval_update(state)` method is called. This method checks various conditions, including `ir.rules` by calling the ORM method `self.check_access_rule('write')`. If one condition or one `ir.rule` is not met, an Error is raised. If the method raises, the user does not have the rights. The exception is catched and the field `can_approve|reset` is set to False. However, an unexpected behaviour happens when fields are re-computed in the context of an onchange. In an onchange, `self.ids` is an empty list. When checking ir.rules, the `_filter_access_rules()` method is used to retrieve valid records in self by checking every record against ir.rules. If some records are not in the valid set, they are considered invalid and an exception is raised. But because self.ids is empty, no record is actually checked and therefore no record is valid. => in an onchange it always raises an AccessError and the users is considered as not having the rights to approve nor refuse a leave as soon as an onchange has been triggered. Thus associated buttons does not appear. The original commit fixed the problem by preventing checking the rules when in an onchange. In the mean time, the root cause of the problem has been fixed by b5c20041. Why revert? ----------- While commit 492764c5 allowed HR users and Team leaders to approve after an onchange, it had the unintended effect to show the "Approve" and "Refuse" buttons to other users. In summary: - With commit 492764c5: buttons are shown more than necessary (which is confusing to users who don't actually the rights to approve) - Without: Thanks to b5c20041, the original problem no longer exists. Users with access rights always see buttons. Users without never see buttons. closes odoo/odoo#33894 Signed-off-by:
Romain Libert (rli) <rli@odoo.com>
-
- Jun 05, 2019
-
-
Olivier Colson authored
We now force tax repartition lines to use the same percentages for invoices and credit notes. Thanks to that, we are able to simplify the way manual modifications made on vendor bills' account.invoice.tax entries must affect the ones of the refunds created for them. This also prepares the code for the incoming big accounting revamping. closes odoo/odoo#33577 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
- Jun 03, 2019
-
-
Cédric Snauwaert authored
fields account_id and refund_account_id on account_tax_template have been moved on the repartition line of the same model. closes odoo/odoo#33829 Signed-off-by:
Cedric Snauwaert (csn) <csn@openerp.com>
-
- Jun 06, 2019
-
-
Kaushalya Mandaliya authored
When talking via the Live Chat to a known partner, should be able to see his name in the chat window title, from the commit: c04b9c01 the partner name wasn't showing in the title as sudo is being used. After this commit, known partner name will be shown in the Live Chat window title. And improving a test case, in which we're checking for the known partner's name in the chat window title. task-1940407 closes odoo/odoo#33831 Signed-off-by:
Martin Geubelle (mge) <mge@openerp.com>
-
- Jun 05, 2019
-
-
Johan Demaret Rivarola authored
Creating a new database with only website_sale_coupon installed will make some (website_)sale_coupon tests fail. This is due to a race condition messing with the value of the pricelist product.list0 currency. The tests are failing due to amounts being compared after the USD currency rate of 1.2834 has been applied. Example on a 10% discount: expected: >>> 320 * 0.9 288.0 actual: >>> 320 * 1.2834 * 0.9 369.62 This is due to https://github.com/odoo/odoo/blob/3cf9cfc985950c30c6b76480f77f5ffe53650b24/addons/website_sale/data/demo.xml#L228 overriding the value to USD. The tests should not rely on this. This commit aims to ensure the currency is enforced before each test run. closes #4371 Signed-off-by:
Christophe Simonis <chs@odoo.com> X-port/Cherry-pick of odoo/enterprise@c1cc464c44393443ef0ad595809dfd02e5b34577
-
Christophe Simonis authored
closes odoo/odoo#33878 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- Jun 04, 2019
-
-
Christophe Simonis authored
-
Nicolas Lempereur authored
Now in 12.3, when the a editable list view is grouped, the "Create" button is no longer shown as was the case before (when it would open the form view when clicked).
-
Nicolas Lempereur authored
In 12.3 when lines are resequenced, the position of the current line does not take into account that it could have been changed (because of drag and dropping a line before or after). opw-1966589 closes #33878
-
Christophe Simonis authored
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
-
- Jun 03, 2019
-
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
-
- May 31, 2019
-
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
Oversight of previous forward-port.
-
Christophe Simonis authored
-
Nicolas Martinelli authored
Make the contract type name translatable. opw-2003957 closes odoo/odoo#33781 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- May 29, 2019
-
-
Toufik Ben Jaa authored
- When validating a payment an "expected singleton" exception is raised due to the fact that we are using a recordset with multiple record instead of a recordset with a single record. OPW-1981632 closes odoo/odoo#33767 Signed-off-by:
Christophe Simonis <chs@odoo.com>
-
- May 31, 2019
-
-
Nicolas Martinelli authored
If the company is not set on the SO, the creation of a SO line crashes because `currency` is empty. opw-2005143 closes odoo/odoo#33783 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- May 29, 2019
-
-
Nicolas Martinelli authored
- Create an Analytic Distribution for: Product A Current user (e.g. Mitchell Admin) - Sell the product in the POS, request an invoice The analytic account defined is not used. This is due to the invoice created as SUPERUSER. We should first take into account the user on the invoice, then the current user. opw-2003935 closes odoo/odoo#33758 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Cédric Snauwaert authored
closes odoo/odoo#33754 Signed-off-by:
Cedric Snauwaert (csn) <csn@openerp.com>
-
- May 27, 2019
-
-
Florent de Labarre authored
closes odoo/odoo#32606 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- May 29, 2019
-
-
Nathan de Pryck authored
Before this commit, the payment memo was copied during the duplication of a voucher. The issue is that the payment memo is not always shown in the view, and it's mostly unique by voucher. Now, the payment memo it's not copied anymore. opw-1986544 closes odoo/odoo#33708 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Christophe Simonis authored
-
Christophe Simonis authored
-
- May 28, 2019
-
-
Nans Lefebvre authored
The stable behaviour of the mail composer is the following: - if a template adds new attachments, the composer only has this list - if a template doesn't add attachments, the list is unchanged - if no template is set, the list is cleared up In the case of templates, we also check that both static and dynamic attachments are added to the list. We clean up after c6d718f2 and subsequently 516f22c3 which failed to take into account the fact that the attachement list could be a blend of commands and ids. Transforming that is taken care of by _convert_to_write, which semantics was changed by c6d718f2. To keep the second behaviour, we thus need to add a (5,) command. opw 2003197 closes odoo/odoo#33706 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-
Navarro Presas Moisés Alejandro authored
closes odoo/odoo#32396 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Navarro Presas Moisés Alejandro authored
In `_compute_qty_delivered` function Python `all` function returns `True` if list is empty; thast why check if `moves` is not empty to set `qty_delivered` to `product_uom_qty`.
-
- May 29, 2019
-
-
mreficent authored
closes odoo/odoo#31799 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Richard Mathot authored
Before the fix, if you had multiple accounts for a specific service, the settings page was crashing. (eg: for a service, you have one account specific to a company and another account with no company set). We now prefer accounts specific to the current company and tie-break on the most recently created one opw-2003744 closes odoo/odoo#33736 Signed-off-by:
Pierre Rousseau (pro) <pro@odoo.com>
-
Richard Mathot authored
opw-2003744
-
- May 28, 2019
-
-
Nans Lefebvre authored
The stable behaviour of the mail composer is the following: - if a template adds new attachments, the composer only has this list - if a template doesn't add attachments, the list is unchanged - if no template is set, the list is cleared up In the case of templates, we also check that both static and dynamic attachments are added to the list. We clean up after c6d718f2 and subsequently 516f22c3 which failed to take into account the fact that the attachement list could be a blend of commands and ids. Transforming that is taken care of by _convert_to_write, which semantics was changed by c6d718f2. To keep the second behaviour, we thus need to add a (5,) command. opw 2003197 closes odoo/odoo#33707 Signed-off-by:
Nans Lefebvre (len) <len@odoo.com>
-