Commit Graph
111266 Commits
Author SHA1 Message Date
qsm-odoo 03ef19e40c [FIX] web, hr_timesheet_sheet: make m2o friendly-usable outside of views
Before this commit, m2o external button was always floating outside the
m2o main DOM element, on the right. This induced problems when using the
m2o outside of views (like in Odoo Studio). Now, the m2o design is made
so that this button is inside the m2o, except in form views where we
expect the button to overflow in the tables' right paddings.
2017-10-12 13:39:17 +02:00
rgarnau b8dac2ff32 [FIX] web: integer not properly parsed
The parsing of the integers does not escape the thousands separator.

issue: Integers are currently not properly parsed. For example, create
a database in Spanish language, install product_expiry and in settings
activate Lots & Serial Numbers. Go to Products and create a new product.
Choose to track by lots and specify the use_time, life_time, etc.
When saving, all integers are set to 0
2017-10-12 10:34:40 +02:00
Laurent Smet 2f3b469dee [FIX] account: fix unreconciled amount on reconciliation widget
Try to reconcile a bank statement of 1000 to an invoice of 650 amount.
The balance amount of 350 is missing on the resulting account.move and
the bank amount is 650 instead of 1000.

task: https://www.odoo.com/web#id=36342&view_type=form&model=project.task&action=333&active_id=967&menu_id=4720
2017-10-11 16:07:36 +02:00
Richard Mathot 66f7d393d3 [FIX] web: debug mode tooltip
Display properly the content of context object instead of
[object Object].
2017-10-11 10:40:46 +02:00
Christophe Simonis 88a9980b0c [MERGE] forward port branch saas-15 up to 66945d3427 2017-10-10 14:15:24 +02:00
Christophe Simonis 66945d3427 [MERGE] forward port branch saas-14 up to 68d1ad5b7a 2017-10-10 13:27:29 +02:00
Christophe Simonis 68d1ad5b7a [MERGE] forward port branch 10.0 up to b1ce2dd6c1 2017-10-10 13:00:48 +02:00
Nicolas Martinelli b1ce2dd6c1 [FIX] account: invoiced amount
- Create 2 companies: A is parent of B.
- Demo is in Company A
- Create 2 invoices for a partner: one in A, one in B (100 each)
- Validate the invoices

Connected as Demo, the 'Invoiced' amount on the partner form view (stat
button) is 100, while clicking on it shows both invoices (total of 200).

There is no need to manually add the company in the `where` clause since
the `_apply_ir_rules` will take care of adding the appropriate
multi-company rules.

opw-772479
2017-10-10 12:33:27 +02:00
Christophe Simonis daa2194677 [MERGE] forward port branch 10.0 up to 0e28db88d1 2017-10-10 12:32:50 +02:00
Nicolas Martinelli e890682656 [FIX] account: invoice analysis
- Create a customer invoice of 100, validate
- Refund the invoice
- Go to Accounting > Reports > Business Intelligence > Invoices
- A total of 200 is shown, while it should be 0.
- The same occurs with a vendor bill (-200 instead of 0)

The invoice lines have their sign modified at two places when used in
the report:
- in method `_compute_price` of `account.invoice.line`
- in method `_from` of `account.invoice.report`

The signs are computed with the following combination:

|Invoice type|`_compute_price`|`_from`|Report sign|
|------------|----------------|-------|-----------|
|out_invoice |              +1|     +1|         +1|
|in_invoice  |              +1|     -1|         -1|
|out_refund  |              -1|     -1|         +1|
|in_refund   |              -1|     +1|         -1|

This is not correct: out_invoice and out_refund should have opposite
signs. Same applies to in_invoice and in_refund.

opw-772479
Closes #19954
2017-10-10 12:31:25 +02:00
Christophe Matthieu 0e28db88d1 [FIX] stock: Decimal precision on weight can not be saved
odoo issue: 774361
https://github.com/odoo/odoo/issues/13784
2017-10-10 11:41:33 +02:00
Raphael Collet fcf6ef476c [FIX] fields: writing on a one2many with a domain should not remove all lines
Specifically, the command `(6, 0, ids)` should only unlink/detach the lines
that satisfy to the field's domain.

Test from #18440

opw-756983
2017-10-10 11:21:15 +02:00
Nicolas Martinelli 5a1e5aa429 [FIX] account: payment communication
- Set up a journal which only accepts SEPA payments
- Import a CAMT file which contains a statement containing:
  No "Ustrd" data
  A "AddtlNtryInf" description longer than 140 characters
- Reconcile the bank statement

A contrain is raised because the communication of the SEPA payment is
longer than 140 characters.

From commit https://github.com/odoo/enterprise/commit/ff84f8b7,
"AddtlNtryInf" is used if "Ustrd" is empty. However, "AddtlNtryInf" and
"Ustrd" do not have the same restrictions. "Ustrd" can have a maximum of
140 characters, while "AddtlNtryInf" can have a maximum of 500
characters.

opw-772009
2017-10-10 11:15:18 +02:00
Josse Colpaert 0e65962a16 [FIX] mrp: states are sufficient for Update link in mo fixes #19962 2017-10-09 17:54:43 +02:00
Christophe Simonis 446ff1baf8 [MERGE] forward port branch saas-15 up to b60a41ce14 2017-10-09 17:54:36 +02:00
Christophe Simonis b60a41ce14 [MERGE] forward port branch saas-14 up to 47fdd9ca71 2017-10-09 17:20:07 +02:00
Christophe Simonis 47fdd9ca71 [MERGE] forward port branch 10.0 up to 0c4ba97f35 2017-10-09 17:19:36 +02:00
Manuel Vázquez Acosta 0c4ba97f35 [CLA] add member to merchise CCLA
Closes #19568
2017-10-09 15:51:22 +02:00
Laurent Smet 165d13bdb5 [FIX] base_address_city: avoid city_id field duplication
In base/res_partner.py, _fields_view_get calls _fields_view_get_address that could calls again
_fields_view_get in case of address_view_id is specified. That leads to issue in base_address_city
because the _fields_view_get_address method will replace two times the city field and then, we get
a view with two city_id fields.

see #16870 for screenshots
2017-10-09 14:45:26 +02:00
Laurent Smet 13b25fedbf [FIX] base_address_city: revert 7dd344129e
-opw: 774206
2017-10-09 14:45:02 +02:00
Christophe Simonis 6b0828b3bf [MERGE] forward port branch saas-14 up to 85c8000738 2017-10-09 13:24:17 +02:00
Christophe Simonis 85c8000738 [MERGE] forward port branch 10.0 up to cb1cfadda2 2017-10-09 12:44:22 +02:00
qsm-odoo 9241f7ea63 [FIX] web: allow strings as m2o values in domain selector
Since the new views, the field parsing for m2o returns an object with
id and display_name. If the given value to parse is a string, it is
supposed that this is an ID. This was breaking the domain selector
widget which should allow strings as name-strings of m2o values.
2017-10-09 12:22:38 +02:00
Raphael Collet cb1cfadda2 [FIX] fields: performance issue in copy_cache (#19963)
That function is called when computing related fields in onchange mode.
The new implementation makes a direct access to the cache's implementation.

opw-772303
2017-10-09 11:53:18 +02:00
Christophe Simonis 7c68e4d040 [MERGE] forward port branch 9.0 up to c725745d14 2017-10-09 11:46:03 +02:00
Yenthe V.G 00d5814b04 [IMP] project: ability to xpath by page name
Closes #17972
2017-10-09 11:44:11 +02:00
Christophe Simonis b5cbb2827e [FIX] mail: handle empty recordset when computing unread message count 2017-10-09 11:36:59 +02:00
xmo-odoo c725745d14 [FIX] sale: action methods with no return values
Returns apparently lost during salepocalypse, leads to errors when
calling them over XML-RPC (cannot marshal None).

Fixes #19889
2017-10-09 10:56:37 +02:00
Jeremy Kersten b6efcc3748 [FIX] base_automation: remove unexpected keyword argument
plan_days don't take anymore a day_date params since commit ff32384

opw-775026
2017-10-09 10:49:56 +02:00
Martin Schmid 79bf7ebb42 [CLA] signature for Equitania Software GmbH
Closes #19386
2017-10-09 10:36:05 +02:00
Günter Selbert 0a5bcd3f51 [CLA] sewisoft UG signs CCLA
Closes #19915
2017-10-09 10:24:54 +02:00
Brandon Bazemore 8b68dc549d [CLA] signature for bazemoreb
Closes #19825
2017-10-09 10:24:06 +02:00
Khoi Nguyen 1bbb7d6241 [FIX] web: clear input on clicking 'Create and Edit' from many2one fields
We clear the input field when clicking 'Create and Edit' to ensure that
the field is empty if the user chooses to cancel the record creation. If
a record is indeed created, then the field value will still be updated.
2017-10-09 09:00:19 +02:00
Odoo Translation Bot 5086bc9a13 [I18N] Update translation terms from Transifex 2017-10-08 07:14:56 +02:00
Odoo Translation Bot 19eb19b92d [I18N] Update translation terms from Transifex 2017-10-08 04:42:45 +02:00
Odoo Translation Bot a846813b96 [I18N] Update translation terms from Transifex 2017-10-08 01:44:15 +02:00
Sylvain Garancher 815c2a324d [CLA] update the contributors list in Syleam's CLA
Closes #19838
2017-10-05 12:18:05 +02:00
Yoshi Tashiro 9fde53cd8f [CLA] Quartile Limited signs the CCLA
Done at #19516
2017-10-05 10:15:56 +02:00
hansmi 8e8594631f [CLA] signature for hansmi
Done at #19503
2017-10-05 10:09:40 +02:00
David Arnold de803378f1 [CLA] signature for XOE and blaggacao
Done at #19210
2017-10-05 10:04:45 +02:00
David Tran bed3ece7f6 [CLA] add signature for tutran81 and emilyha
Done at #19189
2017-10-05 10:02:39 +02:00
Edi Santoso 8cf81132b7 [FIX] base: change position of IDR currency
Currency position of IDR must before symbol

Closes #19178
2017-10-05 09:42:03 +02:00
Jeremy Kersten 7e04e442b1 [FIX] calendar: don't read start_date(time) in read
It seems to randomly save a bad value into the cache for star_date(time) field.

For already impacted database, it can be easily fixed with a simple update.
  update calendar_event set start_datetime=start, stop_datetime=stop where allday = 'f';
  update calendar_event set start_date=start, stop_date=stop where allday = 't';

Than can cause errors for google synchro.
2017-10-03 23:54:31 +02:00
Denis Ledoux 5d1a1942df [FIX] event_sale: tickets with free orders are free
if the attendee ticket is associated to a free sale order,
consider the attended as free.
2017-10-03 22:39:54 +02:00
Jesús Alan Ramos Rodríguez fdb2f17f8b [I18N] add VAT es_MX translations
To use RFC (Mexico) instead of NIF (Spain)

Closes #19142
2017-10-03 15:00:33 +02:00
xmo-odoo 27280fefa9 [IMP] website_mail_channel: unsubscribing unsubscribed address
Before this fix, if a (non-registered) user tried to unsubscribe an
address *not registered*, they'd get an unsub link, click on it, and
get a "Invalid or expired confirmation link." message, usually
wondering what the bloody hell happened.

Provide a clearer message in that case.
2017-10-03 11:19:18 +02:00
qsm-odoo aba5402d5e [FIX] web: allow to group on more groupable fields with the searchview
Some fields are groupable even though they are not stored (e.g. an inherited
field, by example the 'date' field of 'fleet.vehicle.log.fuel').
2017-10-03 10:42:47 +02:00
Edgar Rivero [Vauxoo] 1aa8de172f [CLA] add egrivero to Vauxoo's CLA
Closes #19779
2017-10-03 09:59:59 +02:00
Melroy van den Berg 059bcde33d [FIX] l10n_nl: Missing letter 'e'
Typo missing 'e'. Algemen --> Algemene.

Closes #19837
2017-10-02 15:34:13 +02:00
Melroy van den Berg f3592c7874 [CLA] signature for danger89
Done at #19837
2017-10-02 15:34:13 +02:00