Commit Graph
113876 Commits
Author SHA1 Message Date
Adrian Torres 31ba0fb41b [FIX] ir_module_module: unlink uninstalled modules (#21111)
Before this revision, unlinking a module which has been uninstalled at
least once would raise an Exception because base_module_uninstall
contains a field model_id which is required. The unlink method of
ir_module_module would try to set this field to NULL which is of course
a constraint violation.

This is fixed by manually unlinking the respective base_module_uninstall
records before the unlinking of the ir_module_module record itself

Fixes #20720

DO NOT FORWARD-PORT
2017-11-21 11:13:24 +01:00
Yenthe V.G 0831610d6a [FIX] base: P3-compatible base64 decoding
Closes #21050
Closes #21021
2017-11-21 10:01:52 +01:00
Wolfgang Taferner 483c9bb7eb [FIX] portal: internal server error if name is boolean 2017-11-21 09:38:47 +01:00
Goffin Simon 40a9eca39e [IMP] account: Choosing a tax
It's more easy to select a tax without the widget selection.

opw:779940
2017-11-21 09:24:13 +01:00
Simon Lejeune 5e48193654 [FIX] purchase: _anglo_saxon_purchase_move_lines
Since the stock valuation refactoring, the price_unit on out move are
negatives. This brought an issue when _anglo_saxon_purchase_move_lines
tried to get the amount of the accounting entry in the stock received
account when validating a credit note for a return: as the price_unit
total resulted in 0, the entry was taken from the price difference
account.

Fixes #20840
opw 781836
2017-11-20 17:08:25 +01:00
Goffin Simon 2d5ae3c4ff [FIX] l10n_fr: TVA déd. s/ acq. intracommunautaire not set completely
tag_ids of TVA déd. s/ acq. intracommunautaire were not set in completely.

opw:779286
2017-11-20 16:48:47 +01:00
Christophe Simonis 7a976df0ec [IMP] web: also check for presence of QUnit.only in mobile suite 2017-11-20 16:46:27 +01:00
Christophe Monniez 1779fc123a [FIX] packages: include missing data for l10n_mx
When building the enterprise packages, some data files were ignored.
With this commit, the demo data and missing xslt files are packaged.

This fixes #21045 and fixes #21015
2017-11-20 14:53:56 +01:00
Wolfgang Taferner e5aea5e78f [FIX] sale: remove duplicated field in tree view 2017-11-20 13:47:03 +01:00
Pedro M. Baeza 92cb780051 [FIX] account/sale: remove unused Qweb variable
That variable seems a remaining piece of old code that now doesn't
have any use and makes to compute twice the tax table each time
you print the report.

Closes #20569
2017-11-20 10:28:06 +01:00
Odoo Translation Bot 08bdd06542 [I18N] Update translation terms from Transifex 2017-11-19 04:26:17 +01:00
Nicolas Lempereur ca3390fd05 [FIX] web_editor: forward-port typo on click
event variable has been renamed to ev in 11.0 and the code was
duplicated.
2017-11-17 14:13:58 +01:00
Christophe Simonis 179abc3c5e [MERGE] forward port branch saas-16 up to 11ff01af9b 2017-11-17 13:40:18 +01:00
Simon Lejeune 49c3f64369 [FIX] mrp: workorder: use the reserved move lines
Rev [1] was intended to be applied when changing the lot of the produced
product on the manufacturing order, somewhere along the line the code
was also called when setting the lot_id on the work order. When used in
this context, it broke the reconciliation between the reserved move
lines and the temporary move lines because a lot_produced_id was wrongly
set.

We fix the issue by only applying the code on prod move. This is done by
checking if the move is a production one through the stock move, because
there we are able to differenciate the raw material and production move,
not on the move line where production_id is always set.

[1] 471115b06a

Fixes #20964
2017-11-17 13:32:04 +01:00
Simon Lejeune 179071bb50 [FIX] stock_account: UOM handling
Error introduced by rev 48f4ce4afa
2017-11-17 13:32:04 +01:00
Alexandre Kühn 11ff01af9b [FIX] web: delete attribute on list view
Before this fix, when adding the attribute delete=0
on a listview, it was still possible to delete records
via the menu 'Delete' in the sidebar.

After this fix, this should not be possible to delete
records when delete=0.

The attribute delete was hard-coded to true, as there was
a traceback when it was set to false. It was simply due
to a misplaced closing brackets that was hiding an
assignment, which resulted to calling a method on undefined.
2017-11-17 12:34:25 +01:00
Alexandre Kühn 056fe805a1 [FIX] web: delete attribute on list view
Before this fix, when adding the attribute delete=0
on a listview, it was still possible to delete records
via the menu 'Delete' in the sidebar.

After this fix, this should not be possible to delete
records when delete=0.

The attribute delete was hard-coded to true, as there was
a traceback when it was set to false. It was simply due
to a misplaced closing brackets that was hiding an
assignment, which resulted to calling a method on undefined.
2017-11-17 12:16:59 +01:00
Jeremy Kersten a0a5443e8f [FIX] auth_signup: properly display the error message
Was "Internal Error 500"

Introduced at c3bf161

This closes #20941
2017-11-17 12:02:05 +01:00
Yannick Tivisse 76e75be02f [FIX] l10n_be_hr_payroll_fleet: Increase max unused car limit 2017-11-17 11:25:25 +01:00
Yannick Tivisse bf7ee31105 [FIX] l10n_be_hr_payroll: Remove ucm_insurance from employer cost
This shouldn't be taken into account when evaluating the employe cost.

Furthermore, this value is stupid and should be removed in master
2017-11-17 11:25:25 +01:00
Yannick Tivisse 8c03616fb8 [FIX] l10n_be_hr_payroll: Put the car ATN after the ONSS cotisation on payslip
Purpose
=======

The ATN for a company car is not subject to the ONSS cotisations.
2017-11-17 11:25:25 +01:00
Yannick Tivisse ed28cbd7ef [IMP] l10n_be_hr_payroll: Add a name on view element to allow xpath 2017-11-17 11:25:25 +01:00
Yannick Tivisse c2acd30413 [FIX] l10n_be_hr_payroll: Set the average working days to 231/year
Purpose
=======

That's the number of work days taken into account by the social secretariat
2017-11-17 11:25:25 +01:00
Yannick Tivisse ecedb77ede [FIX] l10n_be_hr_payroll: Compute the Gross Salary with the correct ATN amounts
Purpose
=======

The ATN values on a payslip are fixed with a forfeit. See: https://finances.belgium.be/fr/entreprises/personnel_et_remuneration/avantages_toute_nature/autres_avantages

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

Count the forfeit, not the amount paid by the company.
2017-11-17 11:25:25 +01:00
fwi-odoo 9cbf0c87e2 [FIX] web: allow to reexecute functions using _.throttle in the js tests
Before this commit, it was not possible to reexecute functions using the
_.throttle function in the same test (e.g. drag and drop two elements in the
studio tests).
2017-11-17 10:52:11 +01:00
Martin Geubelle ab900bb62a [FIX] mail: keep model informed of new messages
Do not forward-port this after 11.0

After sending a message, if one switched in edit mode in the form view, the
created message disappeared.

This is because the model is not aware of messages (they are created through
their own routes, message are not handled as other one2many fields with commands)
and the widget was reset with a new datapoint instance when switching in edit mode.

In this rev. we keep the model informed of the new messages by directly writing
the message ids in the datapoint.

Note that the includes on FormController and BasicModel are one in the
form_renderer.js file to fix this issue in existing database without adding
files. Another revision will be done in master to add the correct files.

opw-781353
2017-11-17 10:47:49 +01:00
Nicolas Martinelli 54c2c08747 [FIX] account: initial balance
- Create manually an account move
- Add a line with a credit != 0
- Click on "Add a line" => crash

`line_ids` does not contain the credit since it was not filled in.

opw-782980
2017-11-17 10:09:05 +01:00
jem-odoo 7a951d7085 [FIX] sale: to invoice/invoiced amounts for delivered policy
This commits make the computation of amount to invoice
and amout already invoiced on sale order line works
with invoice policy based on delivered quantities.

Before this, the upselling of delivered quantities
was not working: you were seeing the upsell amount
in the amount to invoice (qty delivered > qty ordered).
Notes:
- When a product is not delivered (qty delivered = 0), its
amount to invoice is zero too
- Draft invoice are not take into account really; they are
included at sale order price (discount on draft invoice does
not impact amounts to invoice/invoiced)

Also, when a SO in state 'draft' or 'cancel', its amount
to invoice should be zero, but its invoiced amount should
take all validated invoices into account.

Finally, more correct trigger are set on the compute
method, to trigger recomputation on right moment.

This commit also compute the 2 amount fields as sudo, since
the amount should not be dependent of access right of current
user.

To check those different points, this commit provide some
more tests with ordered and delivered product, SO cancelling,
upselling or delivery, ...
2017-11-17 10:01:00 +01:00
jem-odoo 93aea80cdf [FIX] sale_timesheet: to invoice amount, take discount into account 2017-11-17 10:00:48 +01:00
Nicolas Martinelli 054477113f [FIX] mrp: missing field used in domain
opw-782997
2017-11-17 09:29:59 +01:00
Christophe Simonis a33e27b139 [FIX] website_sale: return sale.order object
Always return a `sale.order` object, otherwise calling method may crash
since they expect receiving such an object.

opw-761344

Manual forward-port of 0888602831 which has
been lost during normal one.
2017-11-16 18:22:03 +01:00
Nicolas Martinelli fe674f06c1 [FIX] event: with_context
Using `with_context({'use_babel': True})` overrides completely the
environment context. Therefore, the lang is lost and the date is
formatted in the default language.

opw-779753
2017-11-16 18:01:29 +01:00
Arnold Moyaux d279a3e6d5 [FIX] stock: adapt portal rights
After commit 996a817071
The portal report on picking only check if
the user has a 'read' access on picking.
If he can read it, sudo is called and thus
record rule/access right on component objects
are not necessary.

This commit removes useless rights for portal users.
2017-11-16 16:54:42 +01:00
Christophe Simonis a094f6318b [MERGE] forward port branch saas-16 up to 745d00362a 2017-11-16 12:40:36 +01:00
Géry Debongnie 6e8faf40bd [FIX] pad_project: make it usable
The pad_project addon has a simple mission: allow the user to choose if
he wants to use pads in all tasks from a given project.

This is a noble goal, and the code actually works for projects which
have a 'use_pad' field set to true.  However, when a project has
'use_pad' set to false, we have a critical issue, due to the way the pad
widget works.

The pad widget is kind of strange, because it is set on a field which
contains the url for a pad, and it should write itself (the same value),
whenever someone writes on the pad, so the server knows it has to fetch
the result and write it on the 'real' field.  This means that the pad
widget has to write its value each time the user modifies the pad
content and press save.  However, fun fact, we have no way of knowing
when something was changed inside the pad iframe, so we actually save
the value each time the form view is saved.

So, we have a problem now: the description field AND the description_pad
field are always saved, and they interfere with each other.

In this commit, we put the description_pad in readonly mode when it is
invisible, so we do not save its value at all for each edit/save cycle
(and prevent interference).  It actually prevent calling the
generate_pad_url method, but a pad is still created by the server code
each time a task is created.
2017-11-16 12:20:31 +01:00
Géry Debongnie 672b403d05 [FIX] web: make sure modifiers works for async widgets
Before this commit, asynchronous field widgets (with willStart async),
with a non empty template had a problem: the invisible modifier was not
applied properly.

The reason is that the code that applied the modifiers was called
directly after the widget was 'willStarted'. This means that if this is
async, and if there is a template, the $el in willStart will be replaced
by another $el after, which will remove the invisible modifier.

This was an interesting problem with the pad widget (it is asynchronous
the first time a pad widget is instantiated)
2017-11-16 12:20:30 +01:00
Géry Debongnie 745d00362a [FIX] web: make sure modifiers works for async widgets
Before this commit, asynchronous field widgets (with willStart async),
with a non empty template had a problem: the invisible modifier was not
applied properly.

The reason is that the code that applied the modifiers was called
directly after the widget was 'willStarted'. This means that if this is
async, and if there is a template, the $el in willStart will be replaced
by another $el after, which will remove the invisible modifier.

This was an interesting problem with the pad widget (it is asynchronous
the first time a pad widget is instantiated)
2017-11-16 12:19:15 +01:00
Hardikgiri Goswami 797f0c1b6e [CLA] HardikG signs CLA
Closes #20984
2017-11-16 11:02:28 +01:00
Goffin Simon 840e260794 [FIX] account: Due date of a paid invoice should not be editable
Due date of a paid invoice should not be editable when the state of the invoice
is "paid".

opw:782560
2017-11-16 09:40:40 +01:00
Nicolas Martinelli 7931506434 [FIX] hr_payroll: deprecated menu
The tree view has been removed, so the menu is simply deprecated.

opw-781261
2017-11-16 09:37:13 +01:00
Martin Trigaux 58375c99f2 [I18N] export source terms
Follow uup of 6e4d2e36aa
2017-11-16 09:24:37 +01:00
Nicolas Lempereur 6e4d2e36aa [FIX] base_setup,etcie: translate left setting menu
In left menu used for switching between "apps" particular menu, the
apps names were not translated.

This commit use the "string" attribute which is translated instead of
"data-string" fallbacking on data-string (so things still work without
updating the module).

opw-781728
closes #20972
2017-11-16 07:51:17 +01:00
Christophe Simonis a226f415f2 [FIX] account: add missing import 2017-11-15 17:55:33 +01:00
Laurent Smet 676ae771a6 [FIX] l10n_nl: add 'product' and 'dienst' tags
Was PR #20955. Issue 781690
2017-11-15 16:52:47 +01:00
Christophe Simonis 5877b7b38c [MERGE] forward port branch saas-15 up to 73e4dacf78 2017-11-15 15:50:36 +01:00
Christophe Simonis 73e4dacf78 [MERGE] forward port branch saas-14 up to 0bf7ab4511 2017-11-15 15:20:52 +01:00
Christophe Simonis 0bf7ab4511 [MERGE] forward port branch 10.0 up to 0fe7989e24 2017-11-15 14:50:46 +01:00
Nicolas Martinelli 0fe7989e24 [FIX] stock: warning on move
The warning should be a dictionary, not a string.

opw-781880
2017-11-15 14:08:42 +01:00
Pierre Masereel 4dc670bc81 [FIX] stock: uom field on production lot not readonly
Because the uom field on production lot is a related field of
product.prodcut, we shouldn't change the uom of a product through the
production lot formé
2017-11-15 13:58:46 +01:00
Géry Debongnie 6158c5ce04 [FIX] web: fix issue with combination of o2m, m2m, and m2o
Consider this: a form view with a one2many list view. In the one2many
list view, there is a many2one field.  When opening the manyone in a
modal form view, there is a many2many field.  In that situation,
clicking on 'Add a new record' on the many2many field had the
unfortunate effect of interfering with the one2many field in the main
form view, which caused a crash or the modal form view to close
unexpectedly.

The issue is that an event was simply not properly stopped at the proper
location.  This is usually not a big deal, but, as described above, it can be
a problem in some cases.
2017-11-15 13:48:49 +01:00