Commit Graph
104921 Commits
Author SHA1 Message Date
Christophe Simonis 6ceecffcad [MERGE] forward port branch 9.0 up to d9d455bea3 2017-06-12 18:18:05 +02:00
Christophe Simonis d9d455bea3 [MERGE] forward port branch saas-6 up to 5ae9205070 2017-06-12 18:12:16 +02:00
Christophe Simonis 5ae9205070 [MERGE] forward port branch 8.0 up to 06141c34a5 2017-06-12 18:08:03 +02:00
Goffin Simon 7bc52a34ba [FIX] sale_margin: margin in company currency in sale.report
The margin must be expressed in the company currency like price_total
or price_subtotal.

opw:746038
2017-06-12 16:54:29 +02:00
Martin Geubelle a4d9292a12 [FIX] web_kanban: allow column creation on custom model
This is a back-port of the commit https://github.com/odoo/odoo/commit/1a2c05e98bba7694831c82b7be8bb81a9c46535c
that had been applied in saas-16.

As this has been considered as a bug, it should be fixed in previous versions.

No need to forward-port it after saas-15 then.
2017-06-12 16:16:59 +02:00
fwi-odoo 06141c34a5 [FIX] auth_oauth: don't assume that google and facebook providers always exist
Before this commit, it was not possible to reach the general settings when one
of the "default" provider was delete.
After this commit, we don't assume anymore that there are google and facebook
providers.

opw-746907
2017-06-12 15:13:09 +02:00
Thomas Binsfeld 2dc82664ae [FIX] purchase: billed qty
In a SO, the "Invoiced Qty" can decrease if the refund is generated from
the SO. It doesn't decrease if the refund is generated from the Invoice.
However, we don't have this mechanism in a PO since the invoice is not
generated directly from the PO. There is therefore no way to decrease
the "Billed Qty".

We authorize the "Billed Qty" to decrease in the case of PO.

Backport of c6a7e4fbb9

Closes #17564
opw-747038
2017-06-12 14:49:02 +02:00
fwi-odoo b6a08dc982 [FIX] web: hide 'duplicate' action for ir.model.fields
It shouldn't be possible to duplicate ir.model.fields. Add attribute
´duplicate´ which can be set to false to hide the duplication option in the
action menu.
2017-06-12 11:14:55 +02:00
Nicolas Lempereur ed61da6793 [FIX] base: duplicate company => duplicate partner
The name of a company is uniq. The name of a company comes from a
partner and is required.

Thus duplicating a company didn't work.

With this change, if no partner is overriding the copy, the current
partner is duplicated and associated to the new duplicated company.

opw-746106
closes #17532
2017-06-12 11:14:06 +02:00
Nicolas Martinelli 1aff1e3de8 [FIX] point_of_sale: error picking
- Create a stockable and a service product
- In the POS, sell 1 unit of the stockable product and -1 unit of the
  service product
- Validate and pay

2 pickings are created: a picking containing the stockable product which
stays in state 'Draft' and an empty picking in state 'Available'.

The problem comes from the negative quantity on a service product: we
should filter out services when checking the quantities.

opw-745712
2017-06-12 10:41:05 +02:00
Odoo Translation Bot 4dbc9b5472 [I18N] Update translation terms from Transifex 2017-06-11 00:27:53 +02:00
xmo-odoo c50745f1a1 [FIX] base_geolocalize: geocode errors out on empty address
It's unclear whether that's a recent change or a long-standing issue,
however currently if geocode is called with an empty address string it
will reply with a 400 Bad Request, which gets raised as an exception and
forwarded to the user. That is not a great experience.

Shortcut the entire thing and just return None (= geolocation failed /
no geolocation) on trying to geolocate an empty address.

OPW-746686

backport of 74a89bcf5c
2017-06-09 16:52:31 +02:00
Christophe Simonis 1d7260cbcb [MERGE] forward port branch 9.0 up to 77be3d8b39 2017-06-09 12:51:31 +02:00
Nicolas Martinelli 77be3d8b39 [FIX] account: avoid duplicated move name
Commits 9365482df0 and 8fc81b871d attempted to prevent the creation
of two moves with the same name during reconciliation. It works in most
cases, but it is still possible to reconcile the same statement line
with more than one line.

We add an extra check to make sure duplicate never happen.

opw-742018
2017-06-08 14:11:26 +02:00
Jairo Llopis c4c9347b99 [IMP] web: Expose char_domain dialog widget
This simple return allows submodules to be able to know when a dialog is shown and modify something in it.

Note from GED: I am aware that this is a IMP in a stable version, and I really don't like that... But it looks like it really helps many people, as shown by the PR, and the risk induced by this commit is definitely extremely low, so I will make an exception.
(PR: #15579)
2017-06-08 13:53:49 +02:00
nafex 8052869b19 [FIX] delivery: create_price_rules won't create unnecessary rules anymore
When updating a carrier that is not "fixed" or "base_on_rule", this
method was creating unnecessary delivery.price.rule at each write.
This patch fixes this issue.

Closes PR #17443
2017-06-08 11:16:17 +02:00
Olivier Dony fff4af36ab [MERGE] Forward-port 9.0 up to ef82574fb1 2017-06-07 23:40:52 +02:00
Olivier Dony ef82574fb1 [MERGE] Forward-port saas-6 up to b604f3b3da 2017-06-07 23:29:41 +02:00
Olivier Dony b604f3b3da [MERGE] Forward-port 8.0 up to c6b9b69f6a 2017-06-07 23:11:38 +02:00
Olivier Dony c6b9b69f6a [FIX] base_import_module: allow selective access to module files
As a consequence of rev. 76cd8d2558,
imported modules were unable to access their resource files during
import.

Rather than further modifying the file_open API to whitelist paths
(the whole thing needs a redesign in master), we temporarily
whitelist the temporary directory by including it in the global
addons_paths, making sure to undo it afterwards.

This gives all lower level function access the resource files via
file_open, without having to pass around whitelisted paths
through many different calls.
2017-06-07 22:46:25 +02:00
Christophe Simonis 7d7a45a921 [MERGE] forward port branch 9.0 up to fffcfcc519 2017-06-06 15:18:52 +02:00
Christophe Simonis fffcfcc519 [MERGE] forward port branch saas-6 up to 8958bfe557 2017-06-06 13:40:34 +02:00
Denis Ledoux b43151c11c [FIX] product: pricelist item deterministic order
On a pricelist, if multiple rules were set with the same
set of rules condition, the choice of which rule/item
is used was random, according to the postgres database
state.

Adding the `id` in the order force to always use the same
rule/item (the first that was created).

opw-744865
2017-06-06 12:55:29 +02:00
Denis Ledoux 175a5d7808 [FIX] sale: sales order email template without portal_sale
When disabling the customer portal
in the general settings
(or uninstalling the `portal_sale` module directly),
the model `sale.order` no longer has a method
`get_signup_url`, and it therefore leads
to the fail of the email template rendering which is
still referencing this method.

Besides, the `access_url` is actually used only if
`is_online` is True,
(see the `% if is_online:` few lines later)
and in this case `get_signup_url`
was not used at all.

Therefore, we can assume `None` is a good alternative,
as the resul of `get_signup_url` was actually no longer
used.

opw-710481
2017-06-06 10:30:18 +02:00
Denis Ledoux fef6694442 [FIX] product_margin: division by zero in case sum of quantities is 0
If you have two invoices with a same product,
 - one having 1 unit of a product,
 - the other -1 unit of a product,

The sum of these quantities will be 0, and it will lead
to a division by zero in the former sql request.

The nullif should be applied on the sum, not on the line quantity.

opw-745073
2017-06-06 10:18:33 +02:00
Odoo Translation Bot c3e282852d [I18N] Update translation terms from Transifex 2017-06-04 00:28:17 +02:00
Olivier Dony 711530e036 [MERGE] Forward-port 9.0 up to 98f5f1b888 2017-06-03 01:16:50 +02:00
Olivier Dony 8958bfe557 [MERGE] Forward-port 8.0 up to d18d606a55 2017-06-03 01:08:20 +02:00
Olivier Dony d18d606a55 [FIX] tools: verify path before opening 2017-06-02 22:29:47 +02:00
Olivier Dony 98f5f1b888 [FIX] tools: verify path before opening 2017-06-02 22:28:39 +02:00
Nicolas Martinelli 3a826bb772 [FIX] point_of_sale: fix zoom
When the user zooms with the browser, the bottom left pads are
misaligned for some zoom levels.

By slightly reducing the width of the action pad, this can be solved for
all acceptable zoom levels.

opw-745074
2017-06-02 13:30:25 +02:00
Wolfgang Taferner 69028f9997 [FIX] google_calendar: fix wrong recurrency field name used when updating event
Google API: recurrence | Odoo field: recurrency

Closes #17307 .
2017-06-01 12:25:23 +02:00
Raphael Collet d0301459ae [FIX] models: no warning when using api.constrains on an inherited field
Fixes #17312
2017-06-01 10:15:48 +02:00
Lucas Perais (lpe) 0e1b8e5e81 [FIX] account: aged receivable partner balance
We need to ensure the account move lines we search for in case of partial reconciliation are within the period boundaries

Before this commit, when a partial reconciliation has been made long after others, the date used would have been this former move's
because of the MAX() function introduced by commit 3128e84243
Hence for one period, if that date were to be outside the period boundaries, the entire reconciliation would have been discarded, leaving the period due amount to 0, but a non-null total

This commit still uses the MAX() function, but specifies the aml date must be within the period boundaries

OPW 740793
OPW 725890

Closes #17098
2017-06-01 08:35:49 +02:00
Odoo Translation Bot 058b9cbb10 [I18N] Update translation terms from Transifex 2017-06-01 02:40:07 +02:00
Olivier Dony 156e9d0016 [MERGE] Forward-port 9.0 up to 75e03c0f76 2017-05-31 19:28:20 +02:00
Nicolas Martinelli 04ffe03f4b [FIX] sale: default company on SO
In multi-company:
- Create 2 companies A and B
- Set the superuser on company B
- Set the website on company A
- Define company specific sequences for SO (e.g. SOA and SOB)

When a SO is generated from the eCommerce, it is defined on company A
(thanks to 8a1b55a), but the sequence is from company B.

opw-744561
2017-05-31 16:35:23 +02:00
Nicolas Lempereur 75e03c0f76 [FIX] website_form: enforce 'required' date
Only the validity of a date was enforced but the date could also be
wrong in other situation (required so must be filled, validation
attributes, ...).

opw-744273
closes #17329
2017-05-31 10:38:06 +02:00
Pedro M. Baeza 481872ee03 [FIX] stock: Put correct field in delivery slip report
As the header says, the expected field is "Order (origin)", which is
o.origin. The same field is also put correctly in "Picking Operations"
report.
2017-05-30 17:32:28 +02:00
Jeremy Kersten f4aa509283 [FIX] base_geolocalize: use urllib2 to make request
For an unknown reason, in some case, urllib doesn't work while with urllib2 it works.
Since we don't have the opposite case until now (work in urllib and not urllib2), we
considere that it fixes the issue.

this commit closes #14636
2017-05-30 16:47:54 +02:00
Jeremy Kersten f0c34f0df8 [FIX] web: remove bad check from jquery.blockUI
This check is wrong since jquery 1.11 is < 1.2

This commit closes #17271
2017-05-30 16:42:54 +02:00
Josse Colpaert 40c5366861 [FIX] product_margin: graph view only use one non-stored field as measure fixes #16565
Because read_group can not handle non-stored fields well,
we fall back to the similar implementation as for the stock
valuation report.  This allows only one non-stored field as a measure in
the graph.  Then it is more logical to show the total margin as that is
what the module is meant for.
2017-05-30 15:53:34 +02:00
Jordi Ballester 82fbe03ff8 [FIX] purchase: update tests to effectively create invoices of type purchase, not
Default value is out_invoice aka an invoice of type sale. However here
we would like to test invoices of type purchase. Otherwise extending
tests for specific purchase-related invoice code is not possible. This
is done using the magical context key type.

Closes #15886
2017-05-30 14:46:53 +02:00
Jordi Ballester 8a76d4581c [CLA] Add Corporate Eficent CLA
By the way Lois Rilo lois.rilo@eficent.com is now integrated in the
Eficent corporate CLA and does not require a personal one anymore on
the same email address.

Related to #15886
2017-05-30 14:46:47 +02:00
Stefan Rijnhart (Opener) f6986c8cff [FIX] account: fix copy() of accounts having children
Don't pass default code to child accounts to avoid raising wrongly the constraint: duplicate key value violates unique constraint "account_account_code_company_uniq"  

Courtesy of Stefan Rijnhart (Opener). Was PR #16804
2017-05-30 14:12:47 +02:00
Olivier Dony 7b5af174a5 [MERGE] Forward-port 8.0 up to 2fc7eed0d8 2017-05-30 13:52:05 +02:00
Olivier Dony 2fc7eed0d8 [REM] maintenance symlink added by previous commit
Symlink introduced by mistake at f38d96113b
2017-05-30 13:46:16 +02:00
jesusVMayor f38d96113b [CLA] JesusVMayor: add new email address in individual cla 2017-05-30 11:54:28 +02:00
jesusVMayor ebda8caa97 [FIX] mrp: Use the route on the production if set to create the previous moves
Description of the issue/feature this PR addresses:
The production routing is ignored when creating previous movements

Current behavior before PR:
When you create a production that does not have a routing established in the BOM, and you set a route manually, it is ignored when creating the previous movements
2017-05-30 11:53:03 +02:00
Yenthe V.G 140113346d [FIX] CRM: do not copy meetings attendees
When duplicating a res.partner, the new partner was added in the list of
attendees of previous meeting.

Fixes #17285
Closes #17286
2017-05-30 11:22:22 +02:00