Commit Graph
107091 Commits
Author SHA1 Message Date
Christophe Simonis 6a7db30508 [MERGE] forward port branch saas-11 up to f23394b83a 2017-01-25 15:01:29 +01:00
Pierre Masereel f23394b83a [FIX] stock: stock_inventory_line onchange product
If you make an inventory adjustement in mode 'select products manually'
and you add a new line with a product having a different unit of mesure
than the default one, but in the same unit of mesure category than the
default one, the unit of mesure on the line doesn't change because both
are in the same category.

This bug is caused by an 'onchange' which is triggered when the
'product_id' or 'product_uom_id' has been changed. And so we cannot
force to change the value to the product one, because we should still be
able to make an inventory in 'kg', if the unit of mesure is in 'g'.

So to fix this bug, we have set the 'onchange' only on the product_id to
set the unit of mesure set on the product when we create a new line or
change the product of a line. We removed the onchange ont the unit of
mesure, because it was only checking that the unit of mesure is in the
category of the product unit of mesure category, but it's always true
has there is a domain set on the field unit on mesure by the onchange
on product_id
2017-01-25 13:45:29 +01:00
Christophe Simonis 74c6e895f6 [MERGE] forward port branch 9.0 up to 3e31dc0ba4 2017-01-25 13:14:38 +01:00
Christophe Simonis 3e31dc0ba4 [MERGE] forward port branch saas-6 up to 09f7916f48 2017-01-25 13:04:50 +01:00
Christophe Simonis 09f7916f48 [MERGE] forward port branch 8.0 up to 9d535ee2c7 2017-01-25 12:56:42 +01:00
Josse Colpaert 1bf2173240 [IMP] mrp: ensure_one in cal_price
We want to ensure not to mix the price calculation
of multiple MOs when posting inventory.
2017-01-25 12:11:55 +01:00
Nicolas Martinelli 6cfd85bae2 [FIX] sale_timesheet: lost breadcrumb
On a SO, click on the stat button "Project". It opens the form view of
the corresponding project, but the breadcrumb is lost.

opw-705193
2017-01-25 08:28:02 +01:00
Aristides Caldeira b7294754cc [CLA] signature for aricaldeira
Done at #15210
2017-01-25 08:25:29 +01:00
Dileepa Ameresekere 296f9cbe3a [FIX] doc: correct typo fix
Closes #15037
2017-01-24 18:20:12 +01:00
Cédric Pigeon (ACSONE) b307514eca [IMP] account: allow override
Extract the move creation into a different method to allow override.
In case the date or journal needs to be modified.

Closes #15179
2017-01-24 18:15:46 +01:00
andreparames 1d089833b4 [FIX] init: enable evented based on socket
Don't enable evented mode unless gevent is enabled.
Previous code was activating evented mode as soon as gevent is imported which
may happen in different scenario but is not enough to assume the GeventServer
is actually running.

Closes #13463
2017-01-24 18:07:38 +01:00
Jairo Llopis 9d535ee2c7 [FIX] mail: check all parameters are set
Since `model` is not a required field, the invalidation may crash when one is
missing.
It should never happen than a mail.message has a res_id but not a model as it
makes no business sence.
However it is possible than a message temporarly misses one of the two, e.g:

```
self.model = False
self.res_id = False
```
will trigger two writes and will crash at the first.

Above code should probably be refactored to have only one write but this commit
fixes a regression introduced at 8f1c2bfc (the above code did not crash).

Closes #15199
2017-01-24 16:56:33 +01:00
sergio 28ec23e828 [FIX] account: fallback on missing template
template contains the mail template to render and is the result of the call to
`self.env.ref('account.email_template_edi_invoice', False)`

If the template does not exists (deleted), template is `None` and the action
rendering crashes.
While it is not recommended to delete master data, it is still possible to use
custom mail templates.

Closes #15204
2017-01-24 16:50:55 +01:00
sergio 333f012e25 [CLA] signature for sergiocorato
Done at #15204
2017-01-24 16:50:39 +01:00
Hoang, Diep Huu b4c3ac8d48 [CLA] signature for anothingguy
Backport of 2cf3381b to 9.0 as expressed in #13971
2017-01-24 16:15:36 +01:00
Goffin Simon 28b8b9ac37 [FIX] sale: _get_tax_amount_by_group
When computing the amount tax by group, the taxes which affect base of
subsequent taxes must be taken into account and added to the base amount for
only one product.

opw:703524
2017-01-24 15:39:09 +01:00
Stefan Rijnhart d0ea652221 [FIX] portal: set a company for portal without one
The field company_id is not required on the res.partner and is used when the
portal user is created for portal access.
If the partner as no comapny set, the creation crashes (required on the user).

Use system default company, with possibility for overwrite.

Closes #15030
2017-01-24 13:39:47 +01:00
Martin Trigaux 81808d1459 [FIX] base_import: use correct field name
The template example products.xls (used in the import planner) references the
field "Vendors" (seller_ids) but was misspelled "Vendor" (renamed during new API
migration).
The file could no longer be imported.

Fixes #15159
2017-01-24 13:25:40 +01:00
Nicolas Martinelli 1aa7af230f [FIX] website_sale: Last Online SO
- Log in on the eCommerce
- Add a product in the cart
- Log out
- Log in again

The previous cart is not retrieved, and a new one is created.

opw-704646
2017-01-24 13:09:26 +01:00
Nicolas Lempereur f519b98481 [FIX] mail: hidden chatter tooltip can cover content
With 72dfcae2a we have an envelope icon in the chatter with the
information on the sent mail.

When not displayed, the tooltip is hidden using opacity:0 so if
something is underneath it it becomes unclickable.

This commit makes the tooltip disappear in this instance.

opw-705205
2017-01-24 12:49:36 +01:00
Hoang, Diep Huu 2cf3381b23 [CLA] signature for anothingguy
Done at #13971
2017-01-24 10:53:15 +01:00
Daniel Dico 94807753e7 [FIX] anonymization: escape table and field names
Same as 1b9d0fa481

Closes #15187
2017-01-24 10:32:03 +01:00
Pedro M. Baeza 912dd83403 [FIX] base: update Spanish states
According official country source (BOE) some states changed their denomination
to allocate local language spelling.
https://www.boe.es/diario_boe/txt.php?id=BOE-A-2011-11606

As there's a lot of people that still uses the old one, the best solution is to
include both words in the name of the state, and thus user can search by any of
them.

"Melilla" code is also incorrect according used nomenclature but can not be
modified in stable version.
Futher commit can correct it with a migration script

Closes #15166
2017-01-24 10:28:59 +01:00
Joren Van Onder 5ce83b872c [FIX] point_of_sale: avoid scrollbar on main window
Scrollbar appeared in Firefox (at least 50.1.0 and up). Related to
depending on non-standard behavior when setting height on a table. For a
detailed explanation see f0eeed93dc.

In this case we can simply ignore overflow on the main POS window since
the height difference introduced is only a couple of pixels.
2017-01-23 17:33:16 -08:00
Joren Van Onder f0eeed93dc [FIX] point_of_sale: scroll contact list in Firefox and Edge
The POS uses tables to do some of it's layout. It also sets 'height:
100%' on a lot of these tables in an attempt to restrict their
height. The CSS standard however defines the height property on a table
as follows:

"A value of 'auto' means that the height is the sum of the row heights
plus any cell spacing or borders. Any other value is treated as a
minimum height." [1]

Chrome and Safari seems to handle this height property in a way that it
does in fact restrict height. The behavior of Firefox and Edge however
is more in line with the spec, and in these browsers table height is not
restricted by this property.

Because of this the contact list was not scrolleable in those
browsers. To resolve this we stop relying on non-standard behavior by
displaying the relevant contact list elements as regular block
elements. Additionally, we now have to recompute the height of the
client list whenever we show/hide the client details, something that
wasn't necessary before.

[1] https://www.w3.org/TR/CSS21/tables.html#height-layout

Fixes #11020
2017-01-23 12:09:27 -08:00
Joren Van Onder cb597806ec [FIX] point_of_sale: force numpad to appear next to actionpad
The sizes of these UI elements are all fixed and non-responsive and
everything is supposed to fit. Currently however Firefox (at least
50.1.0 up to nightly 53.0a1) is computing the width of a <br> element to
be 0.0166626px, forcing the numpad to wrap to the next line. This forces
the numpad to be 216px wide (width of 4 buttons at 54px each).
2017-01-23 12:04:10 -08:00
Denis Ledoux de6c4f7037 [FIX] project: website live chat link in the planners
These links are links to the Website live chat app description,
not our actual livechat support.

Besides, we currently do not make support through the
livechat.

opw-705614
2017-01-23 17:32:44 +01:00
Daniel Dico 1b9d0fa481 [FIX] anonymization: escape table and field name
to avoid postgresql reserved keywords.
fields like fetchmail_server.user or mail_mail.references uses reserves keywords and must be escaped

Closes #15177
2017-01-23 17:28:16 +01:00
Odoo Translation Bot b164b56ebf [I18N] Update translation terms from Transifex
Interrupted during pull API limit rate
2017-01-23 16:44:17 +01:00
Nicolas Lempereur 587aad2c0c [FIX] web_kanban: send stage for name quick create
In 47e7f7402 there was a typo of not sending the context on the name
created solved by this commit.

opw-705705
2017-01-23 16:11:01 +01:00
Odoo Translation Bot c9c9c1a755 [I18N] fetch missing terms in previous pull
Due to --the minimum-perc rule on tx
Fixes https://twitter.com/bealdav/status/822110096171954176
2017-01-23 15:58:56 +01:00
Goffin Simon 672d00f782 [FIX] mrp: Print BOM Structure
When using different UOM category in a BOM, printing the BOM structure
raised an error.

Linked to this commit:7fc1a3ca7b5b2616e9610b3e62975f6eb3c36267

opw:705471
2017-01-23 14:53:24 +01:00
Nicolas Martinelli 681b7b2522 [FIX] fleet: traceback when vehicles grouped
- Go in Fleet
- Group vehicle list by any variable (e.g. status)
- Open a vehicle from the list
- In vehicle page click on 'Contract'

It crashes.

The `group_by` context key is propagated to a list where the grouping
field doesn't exist.

Fixes #15154
2017-01-23 13:58:49 +01:00
Christophe Simonis 6804085b8c [MERGE] forward port branch saas-11 up to b9374d5c21 2017-01-23 13:56:18 +01:00
Christophe Simonis b9374d5c21 [MERGE] forward port branch 9.0 up to 0997a1cf6d 2017-01-23 13:39:09 +01:00
Christophe Simonis 0997a1cf6d [MERGE] forward port branch saas-6 up to 5065f4b3e8 2017-01-23 13:14:51 +01:00
Nicolas Martinelli d4a4d440f5 [FIX] payment: token domain
The token domain should be extended to the commercial partner and its
siblings.

opw-705441
2017-01-23 13:12:40 +01:00
Nicolas Martinelli f96bbfd956 [IMP] payment: token order
Sort the payment tokens by descending id, so that the default token
selected for a partner is the last one.

opw-705441
2017-01-23 13:12:40 +01:00
Wolfgang Taferner 896f5c0886 [FIX] Invoiced orders should never create a duplicated account move 2017-01-23 12:39:45 +01:00
George Daramouskas 5a992857b8 [FIX] payment: do not rely on English as default language
If the database is create in monolangue and `en_US` is not present, the default
value computation crashes as tries to assign a value not present in the
selection (all installed languages).

Use the environment language as default (same as the default of res.partner).
It may be empty but not a value not existant in the database.

Fixes #15165 
Closes #15176
2017-01-23 12:07:14 +01:00
Denis Vermylen bcc517b6eb [FIX] point_of_sale: do not set 'invoiced' orders to done
This commit fixes github issue: https://github.com/odoo/odoo/issues/15170
2017-01-23 11:37:12 +01:00
Christophe Simonis 5065f4b3e8 [MERGE] forward port branch 8.0 up to 91f11f8bd6 2017-01-23 10:46:39 +01:00
Jeremy Kersten a307ab8076 [FIX] website_sale: partial revert of 6b87284f
This commit has been forward-ported by error in 9 and +.
Update website_sale.js to fix impacted databases.

Decimal precision in v8 = 0.01, and v9+ = 2

With fwd port, int(0.01) instead of int(2) because data-precision
appears 2x, first with 0.01 (v8), secondly with 2 (v9+).

Js fix uses the last decimal-precision (v9) instead of the first (v8)
2017-01-23 09:52:47 +01:00
Nicolas Martinelli 49f5aef548 [FIX] stock_account: inventory at date
The "Inventory at Date" has several issues:
- graph and pivot views are not available despite their existence
- the views are not linked to an action, thus it is impossible to save
  it on the dashboard.

opw-703649
2017-01-23 09:19:49 +01:00
Nicolas Martinelli 68dd9bdb0a [FIX] board: prevent crash if no action
If the user tries to save on the dashboard a view which was not open
through an existing action, the call to method `add_to_dashboard`
crashes because of incorrect arguments (`action_id` is undefined in JS).

This is for example the case when trying to save an "Inventory at Date"
in the dashboard (will be fixed in a subsequent commit).

opw-703649
2017-01-23 09:19:49 +01:00
Nicolas Martinelli 79bd2f3062 [FIX] stock_account: inventory at date
The "Inventory at Date" has several issues:
- graph and pivot views are not available despite their existence
- the views are not linked to an action, thus it is impossible to save
  it on the dashboard.

opw-703649
2017-01-23 09:19:23 +01:00
Nicolas Martinelli 7180d948f0 [FIX] board: prevent crash if no action
If the user tries to save on the dashboard a view which was not open
through an existing action, the call to method `add_to_dashboard`
crashes because of incorrect arguments (`action_id` is undefined in JS).

This is for example the case when trying to save an "Inventory at Date"
in the dashboard (will be fixed in a subsequent commit).

opw-703649
2017-01-23 09:19:23 +01:00
Odoo Translation Bot c7679dde25 [I18N] Update translation terms from Transifex 2017-01-22 04:30:26 +01:00
Odoo Translation Bot 91f11f8bd6 [I18N] Update translation terms from Transifex 2017-01-22 03:25:31 +01:00
Odoo Translation Bot 4169049263 [I18N] Update translation terms from Transifex 2017-01-22 00:39:31 +01:00