Commit Graph
118842 Commits
Author SHA1 Message Date
Martin Trigaux 86a25a68e7 [I18N] resynchronise all translations with .pot
Regenerate all child translations based on the .pot
Remove the terms that are either equal to the parent, either equal to the
source term.
Remove empty translation files
2018-08-17 01:29:55 +12:00
Martin Trigaux 428fbd0381 [FIX] tools: skip bad translations 2018-08-17 01:29:54 +12:00
Mohammed Shekha 16d17c5fb6 [FIX] mrp: apply text decoration properly
When the MO is done, the reserved quantity on stock move is equal to 0
and decoration-success, decoration-danger, decoration-muted are all set
on the class. That implies an uncertain result.

This commit clarify the situation by applying
- decoration-muted if the MO is done
- success, danger or none otherwise

Related to task: #1862299
2018-08-16 10:05:30 +02:00
Christophe Simonis dabe59df9c [MERGE] forward port branch saas-11.3 up to 27d8daf8a7 2018-08-14 19:43:32 +02:00
Christophe Simonis 27d8daf8a7 [MERGE] forward port branch 11.0 up to 51225c9b9f 2018-08-14 18:59:57 +02:00
Christophe Simonis 51225c9b9f [MERGE] forward port branch saas-15 up to 52e88036f2 2018-08-14 18:24:40 +02:00
Christophe Simonis 52e88036f2 [MERGE] forward port branch saas-14 up to d4ee30b4fa 2018-08-14 17:45:46 +02:00
Christophe Simonis d4ee30b4fa [MERGE] forward port branch 10.0 up to a487d7d397 2018-08-14 17:09:32 +02:00
Christophe Simonis a487d7d397 [MERGE] forward port branch 9.0 up to 72cb16865c 2018-08-14 16:57:21 +02:00
Christophe Simonis 71bba5e43d [FIX] anonymization: ignore unreachable code pylint warning 2018-08-14 16:55:36 +02:00
Toufik Benjaa 4f69be7ead [FIX] sale_timesheet: avoid adding buttonbox on invoices
- Instead of adding the "timesheet" statbutton on the invoice's
buttonbox, this inherit view is adding a new buttonbox which causes
conflict with the original buttonbox.
2018-08-14 16:45:51 +02:00
Christophe Simonis 72cb16865c [FIX] purchase: avoid non-sense domain on invoice's purchase order
PO that can be linked to an invoice are filtered via a domain
restricting the partner. However when no partner is selected yet, the
domain was `('partner_id', 'child_of', False)` which, beside being horribly slow, was also useless as it returns ALL partners.

Only generate a meaningfull domain.
2018-08-14 16:19:20 +02:00
Christophe Simonis a711c5acb8 [MERGE] forward port branch 9.0 up to 0b7c1d2978 2018-08-14 15:55:43 +02:00
Richard Mathot 0b7c1d2978 [REV] anonymization: partial revert of 2039c3c792
Shame on me.
2018-08-14 15:49:33 +02:00
Christophe Simonis 70128a2dfc [MERGE] forward port branch 9.0 up to d2605bccdb 2018-08-14 15:12:47 +02:00
Olivier Dony d2605bccdb [FIX] requirements: bump up pillow,jinja2 reqs
Recommended by GitHub's repository alerts.

We normally stick as close as possible to the version we depend
on in the official DEB packages. This in turn depends on the version of
Debian stable at the time of release - for 9.0 that would be Debian 8
(jessie) and thus Pillow 2.6.1.

However Pillow versions before 3.3.2 and Jinja2 before 2.8.1 suffer
from a few issues that could lead to crashes of Odoo workers.
The bugfixes have been backported in the DEB packages for Pillow,
so users of Debian/Ubuntu LTS versions won't be affected if they are
keeping their systems updated.

However it's worth an exception to our rule for pip users.
2018-08-14 14:54:57 +02:00
Jigar Vaghela ea154d283e [FIX] l10n_in_stock: Adapt picking operation report
commit 9a65dda391 display the information
base on move line instead of move. This report should have been updated.

task: 1862307
2018-08-14 14:42:23 +02:00
Richard Mathot 2039c3c792 [FIX] anonymization: end of support
task: 51094
2018-08-14 14:36:18 +02:00
Christophe Simonis c0f147173e [MERGE] forward port branch 9.0 up to 2917b38f28 2018-08-14 14:15:13 +02:00
Nicolas Martinelli 388bc549c1 [FIX] stock: remove unnecessary manual step
- Create a product A tracked by S/N
- Get some stock of A
- Create a SO and sell 1 unit of A, confirm
- Go to the picking, validate

An error message forces the user to manually encode the 'Done'
quantities.

This step is not necessary, since the user will still get a message
notifying him that the reserved quantities will be used as done
quantities.

opw-1873180
2018-08-14 13:43:43 +02:00
Nicolas Martinelli 90cdc91638 [FIX] account: fiscal year last day
Do not replace the day value without notifying the user.

In undetermined circumstances, a fiscal year last day and month can be
replaced by the default December 31st value. Since all settings are
re-written for any setting changed, this is likely to happen in the back
of the user.

Moreover, the `_verify_fiscalyear_last_day` is not correct since it
doesn't accept February 29th, while `compute_fiscalyear_dates` handles
it.

opw-1867978
opw-1873260
2018-08-14 13:32:41 +02:00
Christophe Simonis 2917b38f28 [FIX] crm: do not consider leads without emails as duplicated 2018-08-14 12:08:04 +02:00
Martin Trigaux e08f947abe [FIX] purchase: use field in purchase_stock
The field move_dest_ids is now defined in purchase_stock (since the split at
rev 8d4609a1db)

The line was added in purchase at f6b3247c31 in 11.0 but incorrectly forward
ported.

This commit only moves the code to the appropriate module.
2018-08-14 11:16:50 +02:00
Christophe Simonis b75e007122 [FIX] web: check emptiness of attribute using lodash
Attribute may be undefined.
2018-08-13 17:35:20 +02:00
Martin Trigaux 0d30db55de Revert "[IMP] sale,account: display tax amount when rounding method is perline"
This reverts commit f6216a99df.

What we wanted two years ago is no longer a true today.
Only fools and dead men don't change their minds.

Task id: 31052
2018-08-13 16:50:11 +02:00
Christophe Simonis 13f55a5a89 [FIX] mail: correct search for records without next activity date
`date_deadline` being required, search for records without deadline is
actually searching for records without next activities.
2018-08-13 16:28:45 +02:00
Toufik Benjaa c605acd0a0 [FIX] mail: Keep backward compatibility on route /mail/view
- If a database is migrated from an older version to saas-11.3 without
this patch, all the links /mail/view with a message_id as parameter will not work.
  We must keep the backward compatibility for those links.
2018-08-13 15:58:08 +02:00
len-odoo 549b7175ec [FIX] sale_crm: add marketing context when converting opportunity to quotation
When converting an opportunity to a quotation, marketing context (campaign,
medium and source) weren't copied to the newly created quotation.

opw 1863825
2018-08-13 15:22:26 +02:00
William Henrotin daec62ab68 [FIX] stock: inventory detail view.
In the inventory form view, the stock move table into the inventory
adjustment tab shows useless
columns. This commit add inventory adjustment related columns only.

Task : 1857705
2018-08-13 14:23:19 +02:00
Simon Lejeune d7b291a98a [REF] stock: expose a method to get the theoretical quantity
- use the `gather` method instead of calling search with a custom domain
- expose the method so that the barcode client action is able to call it
  when a line is added without being backed by an inventory line (yet).
2018-08-13 14:23:19 +02:00
Simon Lejeune d3d576cf8e [IMP] web: add infos key to on_close from special action 2018-08-13 14:23:19 +02:00
Alexandre Kühn 65cc630050 [IMP] web: provide infos for close action
This is a backport of 3210f10827

With this commit, when we perform a close action, we can provide infos to
the `on_close` handler, so that it can handle different cases that caused
the close action.
2018-08-13 14:23:19 +02:00
Simon Lejeune 2502b34a72 [REF] stock: move: rework kanban view
Note: stock moves are created from multiple objects. In case of inventory
adjustments, some field are useless like the initial quantity or the
reserved quantity. This commit hides those useless fields in the stock_move
kanban view in case of move related to inventory.
2018-08-13 14:23:19 +02:00
Simon Lejeune 9f2bbcbd61 [REF] stock: move line: add tracking fields
These fields aren't use in the main form views because we prepare the
context before opening the move lines wizard, but we need them in the
barcode client action because it is using a form view on this model
without clean possibility to prepare the context.
2018-08-13 14:23:19 +02:00
Nicolas Martinelli 34117549b9 [FIX] web: increase timeout
Enterprise build fails systematically because of timeout.
2018-08-13 14:00:18 +02:00
Nicolas Martinelli ea4502ceab [FIX] mass_mailing: bounced statistics
A mass mailing can be considered both as bounced and opened. This can
occur with some email providers, such as Gmail. Indeed, Gmail sends
out-of-office replies to the `Return-Path` address, which is also used
for bounced emails. Therefore, it is not possible to determine
accurately if a message sent to to the `Return-Path` is a genuine
bounced email, or an out-of-office reply.

However, if the recipient opens the email, it is possible to determine
that the bounce was counted incorrectly. In this case, we empty the
`bounced` field. Similarly, we only write on the `bounced` filed if the
`opened` field is empty. This could occur if the recipient opens the
email before the out-of-office reply is received.

As a bonus, we also make sure to avoid updating the status if no route
was found. No route means that the email was bounced, so no reason to
set it as opened.

opw-1869957
2018-08-13 13:57:13 +02:00
len-odoo b41baa3c92 [FIX] base: handle RedirectWarning exceptions during import
During an import, account_invoice.py's _onchange_partner_id can return a
RedirectWarning exception, which wasn't properly handled by the load method.
Since it is an Exception, it was expected to have a name field.
We add it as a property so that they can be treated uniformly.

opw 1866965
2018-08-13 13:53:12 +02:00
Arnold Moyaux e1ff6ce3d9 [FIX] purchase: cancel a PO undo the closest picking cancellation
Usecase to reproduce:
- Set a product buy and MTO
- Create a SO with it and cancel it
- All the pickings are cancel
- Cancel the PO
- The picking that generate the PO is set to confirm
The picking should remain in cancel state

It happens because the button_cancel method still
consider the canceled moves.

This commit only modify destination moves if they still
require an action from the user.
2018-08-13 13:51:54 +02:00
Nicolas Lempereur 9b609842e3 [FIX] l10n_in: invoice col length kept same
If there is less than 5 invoices lines, {5 - number of invoice line}
empty invoice line are added as padding.

But these line could have a different number of column than the content,
thus the style could differ slightly or more erroneously if there was
background color depending on column number such as on the boxed style
layout.

opw-1870625
closes #26317
2018-08-13 11:32:24 +02:00
Xavier ALT c5e1bffa3d [FIX] tools: formatLang should use cached lang 2018-08-13 11:18:00 +02:00
Odoo Translation Bot 566d1586bc [I18N] Update translation terms from Transifex 2018-08-12 07:14:34 +02:00
Odoo Translation Bot 75630e3d69 [I18N] Update translation terms from Transifex 2018-08-12 04:15:33 +02:00
Odoo Translation Bot 62a93c1ddb [I18N] Update translation terms from Transifex 2018-08-12 00:27:42 +02:00
Martin Trigaux b387a7e541 [FIX] base: rename languages to be more international
Chinese (China) is actually the Simplified version of Chinese
Chinese (Taiwan) is actually the traditionnal version
This will avoids confusions
2018-08-10 16:55:42 +02:00
Yannick Tivisse a06747c03d [FIX] base: Execute group config on modifications only
opw: 1872220

Purpose
=======

1/ Go on Settings -> Users, enable some groups for a specific user
2/ Go on any app -> Configuration -> Settings, modify a group

All the specific groups assigned to a user are erased.

Specification
=============

We should avoid to remove a user from a given group.

Create a new res_group with the default value, and only apply the
group modification if the group has actually been modified.
2018-08-10 16:22:00 +02:00
len-odoo 792520926a [FIX] sale: pass correct action when accessing quotation from email link
When accessing a quotation from an email link, no action is given.
As a result, after create/discard of a new record, the abandonRecord method does
not find a fallback page to go to, and it appears as if the discarded new record
had been created.

opw 1869350

11.0-opw1869350-action-len
2018-08-10 16:11:30 +02:00
Martin Trigaux cd3230c1d3 [FIX] delivery: translate delivery line
Fixes #26289
2018-08-10 15:27:16 +02:00
Christophe Simonis edd586002e [FIX] sale: uses float_compare in test 2018-08-10 12:14:35 +02:00
Gabriela Mogollon ebf29dfc2e [IMP] hr_payroll_account: Avoiding creating empty journal entries
Purpose
=======

Steps to reproduce
------------------

Install hr_payroll_account
Configure a salary rule
Create a payslip and confirm

Current behavior
----------------

A journal entry is created without items.

Expected behavior
-----------------

Create the journal entry with all items like it's created
When the payslip is computed (compute sheet button) and validated.

resolve https://github.com/odoo/odoo/issues/24796

Specification
=============

Now the super of ```action_payslip_done``` is called before the creation
of the journal entry. This means that the ```compute_sheet``` method is
called too before the filling of the account move.
2018-08-10 11:09:15 +02:00
Prakash Prajapati c69a6c6509 [FIX] mrp: see full name of 'report' option in BoM 'Structure & Cost' report
Before this commit, when we opened the report "Structure & Cost" of a Bill of
Materials of a product without any variant, the dropdown option selection
'report' had the current selection name cut. For instance, the selection
"BoM Structure & Cost" was displayed as "BoM Structure".

This was due to each option having a width determined by the bootstrap
classname `col-md-4`, independently on the number of options that are
available.

There are either 2 or 3 options at the top of this report, depending on whether
the product of the BoM has variants or not. When there are 3 options, there is
not problem. However, with 2 options (i.e., without variants), each option
available horizontal space is reduced, so that the 'report' option is shrunk,
which cuts the text selection as a result.

This commit fixes this problem when there are 2 options (= "no variant"),
so that the 'report' option uses more horizontal space.

Task-ID 1864490
Closes #25643
2018-08-10 10:15:20 +02:00