Commit Graph
104251 Commits
Author SHA1 Message Date
Josse Colpaert 3f375c9bbe [FIX] stock: destination location on delivery order without partner
If you create a delivery order without partner, its destination location
zone will be set to "Partner Locations / Vendors", which is not correct.
This is due to an error in the onchange_picking_type.

This commit fixes the issue by setting the destination location to
"Partner Locations / Customers". This change has not other implications
more than being consistent.
2016-12-15 15:03:46 +01:00
Simon Lejeune 8fe8ca9948 [FIX] stock: picking assign for stock moves if batched in a one2many
Let’s say you have 10 units of products item1 and item2 in your stock.
If you create a sale order with two order lines: 1 item1 and 1 item2,
it’ll create one picking with two pack operations: 1 item1 and 1 item2.
Validate the picking, everything goes fine.

Now if you go back to the sale order and increase the quantity of the
two order lines, let’s say you sold now 2 item1 and 2 item2, it’ll
create two picking having each one a single pack operation: the first
with a pack operation for 1 unit of item1, the second one with a pack
operation of 1unit for item2.

The expected result would be that a single new picking with the two pack
operations is created.

This bug is due to the fact that there’s a check on sale order line
write that’ll call _action_procurement_create if you indeed increased
the quantity of any line. This method will at some point call
assign_picking on the model stock move. This method will try to find a
non-done picking with the same procurement group as the one we’re
working (the procurement group for our sale order). For the first write
on sale.order.line, it won’t find one because there aren’t, so it’ll
create one. For the second write on sale.order.line (so, for the second
line) it should find the picking created by the first write, but it
won’t and so it’ll create a second picking.

The fact that it didn't find the picking create by the previous line
is due to the fact that we do not update the computed fields
between write on a one2many field since rev 7b8afc2 and that “group_id”
on the model stock.picking is a computed field (a related).

As we prefer to keep the behavior of not recomputing the computed fields
between writes on a one2many (it’s a trade-off for performance reason,
except in edge cases the recomputation is useless), we explicitly
trigger the recomputation before looking for a candidate picking in the
stock.move action_assign, so that the next searchs on picking.group_id
will be succesful.

This commit also introduces a test for this case.

Closes #14718
2016-12-15 13:36:50 +01:00
Nicolas Lempereur c9cd40d0f4 [FIX] web: possible traceback when removing list row
Fix and issue is similar to odoo/odoo@1f06cc416

When clicking on delete icon before saving current list row edition (by
clicking outside the editable field), it could lead to traceback in some instances
because the deletion and saving are done concurrently.

closes #627
opw-695743
2016-12-14 19:14:50 +01:00
Christophe Simonis 995a58cc4b [MERGE] forward port branch 9.0 up to a9a7fe15b3 2016-12-14 13:46:11 +01:00
Christophe Simonis a9a7fe15b3 [MERGE] forward port branch saas-6 up to e25629510c 2016-12-14 13:33:32 +01:00
Christophe Simonis e25629510c [MERGE] forward port branch 8.0 up to 73e5c82037 2016-12-14 13:07:24 +01:00
Richard Mathot aaf2e96b0a [FIX] membership: bad forward port of aac0faafb8 in 9.0 2016-12-14 12:23:07 +01:00
Goffin Simon 169b396c3f [FIX] product: Persistant order on product variant
The order of variants(product.product) is (re)defined each time  the attributes
of a product.template are modified. The order of these variants is computed according
to the order defined on "product.product" which is ordered by 'default_code,name_template'
and also the sequence of the product.attribute.value.
But when a new product.attribute is created, the default sequence is the order of creation of your new values.
So if the sequence of the attributes is changed after modifying the product.template, the new sequence will not
have any impact on the order of the variants. The sequence of the attributes must be defined first
before modifying the attributes on a product.template to have an impact on it.

opw:693135
2016-12-14 11:53:34 +01:00
Pere Albujer 73e5c82037 [FIX] point_of_sale: increase total's table size
Was taking the right half of the ticket only and may be too small to display the full amounts (currency symbol cropped in some languages)

Closes #14702
2016-12-14 11:07:56 +01:00
Nicolas Lempereur f1973fa0a7 Revert "[FIX] purchase: update order_lines date_planned"
This reverts commit dcf50bf242.

The commit should not have been forward-ported after 9.0 since
Model update method has been @api.multi'ed.

This also introduced an issue since changing the first line would
change the date_planned of the order (which would alter subesquent
updates).

opw-697680
2016-12-14 08:43:46 +01:00
Nicolas Lempereur 2d0ff8afa4 [FIX] purchase: set all dates and not-stored field (9.0 only)
The feature "set all date to all order line" on a purchase order allow
user to update the schedulded date of all order lines.

It was backported in 9.0 with 401a3cfa but in 9.0 date_planned was not
stored, the button would wrongly set the scheduled dates of the lines to
the minimum date.

With this commit the functionality should work as expected, unless
someone use an out-of-date template in which case the functionnality is
disabled.

opw-697680

note: PO date_planned is stored after 9.0 so this commit must not be
forward-ported.
2016-12-14 07:41:01 +01:00
Julien Laloux d543bb3106 [FIX] account_test: add missing _
The translation function `_` was missing while it was present in the content (e.g. account_test_01)

Closes #10403
2016-12-13 16:15:20 +01:00
Moises Lopez - https://www.vauxoo.com/ c349e9a8f8 [FIX] stock: Add missing context to search
Closes #13636
2016-12-13 11:46:47 +01:00
Nils Hamerlinck d1eca511a8 [FIX] stock: keep prefixes of consistency
When renaming a warehouse, the sequence are renamed.
Previous sequences uses slashes while the new one backslashes.
Keep consistency between sequence from origin and new one.

Closes #13774
2016-12-13 11:39:56 +01:00
Juan Carlos del Valle 3ea8958014 [FIX] hr_expenses: add missing tax_ids
* ccd6fc6 already fixed the bug of the account move for expenses with more than 1 taxes but the taxes were not used.
Adding in `_prepare_move_line` to be included in the created move line.

* added Contributor License Agreement

Closes #12849
2016-12-13 11:21:43 +01:00
Lucas Perais (lpe) 438247f1f4 [FIX] account: Nicely warn the user that no sequence is set when refund_sequence is True.
Avoid a traceback when the refund_sequence is not set

Closes #14666
OPW #697292
2016-12-13 10:28:25 +01:00
Goffin Simon ea021ff17a [FIX] account: taxes with analytic account
The account move line created for a tax must have the right account_analytic_id
according CONDITION.

CONDITION(inspired from function compute defined on model "account.invoice.tax")

if the tax is for an "in_invoice" or an "out_invoice" => tax_code = 'tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_collected_id'

if the tax is for an "out_refund" or an "in_refund" => tax_code = 'ref_tax_code_id'
=> the account_analytic_id of the tax must be set to 'account_analytic_paid_id'

note:forward-port upto saas-6

opw:694821
2016-12-13 10:10:35 +01:00
Goffin Simon 731cf476b2 [FIX] account: taxes with analytic account
The account move line created for a tax(with analytic = True) must have
the same account_analytic_id than the account move line created for the
taxed amount.

opw:694821
2016-12-12 15:02:56 +01:00
Odoo Translation Bot 72a4229130 [I18N] Update translation terms from Transifex 2016-12-11 02:58:13 +01:00
Odoo Translation Bot 5b39b8b1db [I18N] Update translation terms from Transifex 2016-12-11 00:33:19 +01:00
Denis Ledoux 97e5da5e2a [FIX] website_links: adapt countries pie chart height
With a high number of countries,
the pie chart was partially hidden.

We adapt the svh height according to the number
of country to display.

opw-691941
2016-12-09 17:42:25 +01:00
Christophe Simonis 321b7dc5b6 [MERGE] forward port branch 9.0 up to 9c8422a 2016-12-09 15:09:36 +01:00
Christophe Simonis 9c8422a405 [MERGE] forward port branch saas-6 up to 75e7f0d 2016-12-09 15:07:00 +01:00
Christophe Simonis 75e7f0da10 [MERGE] forward port branch 8.0 up to 5ece76b 2016-12-09 15:04:42 +01:00
Martin Trigaux cb7517f7e5 [CLA] merge duplicated signature file
Case mismatch
2016-12-09 14:43:06 +01:00
Cristian Moncho 5ece76b717 [FIX] project: remove redundant context declaration
Declaring the keyword argument `context` in an API v7 `orm.browse_record` can
lead to mixed API v7/v8 inheritance bugs (`context` will be treated as a
function parameter instead of being injected in `self.env.context`). As the
context is already propagated in line 953, we can safely remove it from line
971.

Closes #13115
2016-12-09 14:37:21 +01:00
sergiov 4792a669d3 [FIX] auth_signup: display full error message
When the user name entered hasn't an email specified the error message wasn't
displayed in the reset view.
The error message was in e.name, not e.message
2016-12-09 14:32:16 +01:00
sergiov 85dc060a06 [CLA] signature for Sergio2409
cf #13960
2016-12-09 14:28:15 +01:00
Aleš Ferlan 331f4c7e1e [FIX] l10n_si: adapt after taxes raise
Taxes in Slovenia were raised from 8.5% to 9.5% and 20% to 22%

Closes #13397
2016-12-09 12:02:31 +01:00
Aleš Ferlan 9b36f3f6ad [CLA] corporate signature for GoOpen
cf #13397
2016-12-09 12:02:31 +01:00
Raphael Collet 5593d2c89b [FIX] fields: detect recursively computed fields when computed together
When several fields are computed together, if one of them depends on another,
all the given fields must be considered recursive.
2016-12-09 09:40:59 +01:00
Raphael Collet a3f2b8937a [FIX] fields: computed fields with some erroneous records
When computing a field on a recordset with erroneous records in the
middle, the field is invalidated for some records of the recordset.

OPW 697059
2016-12-09 09:40:31 +01:00
Christophe Simonis f4ad09b30e [FIX] report: correct pot file 2016-12-08 14:52:34 +01:00
Christophe Simonis 70193f23dc [MERGE] forward port branch 9.0 up to 154a125 2016-12-08 13:55:40 +01:00
Christophe Simonis 154a125017 [FIX] crm: Use an address that google knows of.
Needed for geo localisation tests.
2016-12-08 13:08:33 +01:00
Christophe Simonis 1568c81269 [MERGE] forward port branch saas-6 up to da5d628 2016-12-08 12:27:18 +01:00
Christophe Simonis da5d628911 [MERGE] forward port branch 8.0 up to d16d1c6 2016-12-08 12:14:40 +01:00
baimo d16d1c6d9f [FIX] web_gantt: translate "Gantt View" term
Closes #13328
2016-12-08 10:43:28 +01:00
Yenthe V.G 63d230b007 [IMP] Remove old people from license
Closes #14647
2016-12-08 10:20:40 +01:00
Denis Ledoux f5f55b2289 [FIX] barcodes: compatibility of new Event() for IE >= 9.0
Using the constructor `new Event()` is not supported in IE >= 9.0
(tested on IE 11). It raises the below error:
`Object doesn't support this action`

This revision implements the Polyfill `CustomEvent()` suggested
by the MDN here:
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
and uses it if the `new Event()` call fails.

opw-690984
2016-12-07 18:13:43 +01:00
Goffin Simon 25dd22c3a8 [FIX] stock: Customer address in delivery slip report
When printing the delivery slip in dropshipping, the displayed address in the
delivery slip report must be the address of the customer. Inspired from report.picking

opw:695865
2016-12-07 16:46:00 +01:00
Denis Ledoux 82a07d1072 [FIX] sale: fix company_id assignment on order line creation
Due to the following revision:
456d7b38f1

The company on the order line was not assigned
when creating a new line in an existing sale order.

The company was correctly assigned when you created
the order line with the order, and when changing the company
of the order, but not when adding a new line on an existing order.

This new trigger repairs this regression.
2016-12-07 16:33:18 +01:00
Denis Ledoux 36c6edf4bc [FIX] product: fix company_id assignment on pricelist version & items creation
Due to the following revision:
295b96c0b3

The company on the version and items was not assigned
when creating a new pricelist version on an existing
pricelist.

They were if you changed the company of the pricelist,
thanks to the triggers added in the above revision,
but not when they have just been created in the pricelist.

These new triggers repairs this regression. It also handle
changing the `pricelist_id` of a version (this is doable through
the "Sales > Configuration > Pricelists > Pricelist Versions" menu).

Fixes #14631
2016-12-07 16:26:11 +01:00
qsm-odoo 0f45436c9c [FIX] web_tip: do not off all the bus "resize" events
The Tip class instances are binding two callbacks to the core.bus
"resize" event: one in the init function and one when the tip is
triggered. In the destroy function, these two bindings are removed.
However, if the tip was not triggered, the second binding has not
been made and removing it in the destroy function removed every
bindings made on the core.bus "resize" event instead (even those
from other modules). This is because it gives an undefined callback and
so this is equivalent to calling bus.off("resize", this[, undefined]).

Note: this problem is solved in future versions with the new web_tour
module.
2016-12-07 12:35:38 +01:00
Josse Colpaert 86718d98bd [FIX] stock: don't delete package when you would still use Unpack button as it can create problems on pickings, ... 2016-12-07 11:59:19 +01:00
Martin Trigaux 3642f11942 [FIX] report: catch missing wkhtml error
If wkhtmltopdf is missing, a call to a report will be catched to warn the user.
In case of a report generated indirectly (e.g. via an attachment on an email
template), the rendering would crash.

As warning the user is better than returning a traceback, raise a UserError.

Closes #14535
2016-12-07 11:58:32 +01:00
Simon Lejeune 7ccf4e60c8 [FIX] report: correctly handle broken wkhtmltopdf
It's possible that the command `wkhtmltopdf --version` returns an empty
string (in the use case, it output later in stdout "wkhtmltopdf: error
while loading shared libraries: libfontconfig.so.1: cannot open shared
object file: No such file or directory").

We chose to display the report in html in this case and also to show
a warning to the user inviting him to fix his installation.
2016-12-07 11:30:04 +01:00
qsm-odoo 3fd74146c2 [FIX] web_editor: let whole backend know when leaving fullscreen editor
An enterprise feature was in conflict with the fullscreen mode of the
editor (see commit https://github.com/odoo/enterprise/commit/125414b73e4d839fc44c445bb83591e84f4c855d which fixes it).
This commit forces this feature to be retriggered when the fullscreen
mode is left (as the feature is now put asleep during the
fullscreen mode).

This should obviously be improved to handle fullscreen mode with a more
robust way.
2016-12-07 11:07:14 +01:00
Raphael Collet fe02b79a65 Fix @constrains parameters (#14607)
* [FIX] base: @constrains parameter on `ir.ui.view._check_xml`

The constraint is never checked because the parameters `arch` and `arch_base`
are not stored.  Use `arch_db` to make the constraint work.

* [FIX] stock: @constrains parameter on `stock.warehouse.orderpoint._check_product_uom`

The constraint parameter `product_uom` is not stored.
2016-12-07 10:15:15 +01:00
qdp-odoo 7cdd90e95d [REF] account: improve inheritancy of default_get values of WizardMultiChartsAccounts class.
This will allow localization to define more easily extra bank or cash journals
2016-12-07 09:52:30 +01:00