Commit Graph
117156 Commits
Author SHA1 Message Date
Xavier Morel 1e3c76f41d [IMP] web: add web tests to regular JS suite
Remove old tests page as it was obviously unmaintained and did not run
at all...
2017-10-10 14:25:19 +02:00
Xavier Morel 6a291815e7 [FIX] doc: warning & P3 compatibility 2017-10-10 14:23:42 +02:00
Christophe Simonis 88a9980b0c [MERGE] forward port branch saas-15 up to 66945d3427 2017-10-10 14:15:24 +02:00
Deep Patel 29cb592e6b [FIX] maintenance: typo 2017-10-10 14:06:34 +02:00
Martin Trigaux bd4cabdcd2 [I18N] synchronise v11 source terms 2017-10-10 13:44:45 +02:00
Jairo Llopis 348b2d713a [FIX] P3 syntax errors preventing compileall
Not that we really care about compileall, but some people apparently
do.

Fixes #19871

Closes #19849
2017-10-10 13:32:28 +02:00
Xavier Morel 40ca8557e9 [FIX] building documentation with P3
* fix P3 incompatibilities in doc/_extensions
* vendor pyjsdoc, strip out everything we're not using and make what's
  left P3-compatible (upstream is not P3 compliant)
* drop undeclared dependency on attrs as it turns out not to be much
  used
2017-10-10 13:29:11 +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
Xavier Morel 8071742959 [FIX] doc: almost all warnings & drop mercurial dependency
* fix all warnings wrt patch application & al, only warning left is
  only exercise-kanban being auto-guessed as an xml+django file and
  then lexing failed (because it's only a small snippet)
* update sphinx-patchqueue to drop the requirement on mercurial for
  patch introspection and application, though that means application
  is significantly less forgiving (fuzzy application was not
  implemented)
2017-10-10 12:26:00 +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
Jeremy Kersten 45085d3685 [FIX] website_event_track: fix internal error on page agenda
P3 'dict_keys' object has no attribute 'sort'

Thid commit closes odoo/odoo#19989
2017-10-10 11:01:32 +02:00
Yannick Tivisse 1df6f4c741 [FIX] ir_actions_report: Render correctly the base64 images in P3
Purpose
=======

In python2 a binary field value is retrieved as a string. Example: company_id.logo = u'xyz'

In python3 a binary field value is retrieved as a binary. Example: company_id.logo = b'xyz'

When trying to render an image on a template, we should pass a stringified version of it.

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

Pass the method to_text in the template rendering context and use it.
2017-10-10 10:39:43 +02:00
Gorash 707c6b8016 [FIX] account: the test fail if account_batch_deposit is installed
account_batch_deposit add a button who match with the jQuery selector.
Fix also the typo string (1 = should display ^^).
2017-10-10 10:24:04 +02:00
Jos De Graeve c749067165 [FIX] doc: mention pip3 instead of pip for python mod install suggestions
Do not suggest to use pip in the logger, the system administrator may use other
tools

Closes #19949
2017-10-10 10:10:44 +02:00
qsm-odoo b719e43b15 [FIX] website: allow starting website 'animations' on #wrapwrap
Before 11.0, website 'animations' were able to be started on any DOM
element. Since 11.0, this was reduced to any DOM element inside the
main website element (#wrapwrap). This commit allows this element
to be attached a website 'animation' too.
2017-10-10 09:57:11 +02:00
Christophe Monniez bb14c41663 [REF] core: Remove psycogreen dependency
Purpose:
    The psycogreen module is unmaintained. Last source update was in
    2015 and last pypi package was in 2012. Odoo only use a small
    part of the psycogreen module that could be written directly in
    the odoo code. This commit reproduce the small function from
    psycogreen used in ODoo and remove all depencies from it.
    Also the copyright and license are honored and the documentation
    is updated accordingly.

    pypi pckage: https://pypi.python.org/pypi/psycogreen
    bitbucket repos: https://bitbucket.org/dvarrazzo/psycogreen/
2017-10-09 18:56:57 +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
Simon Lejeune 9d5c1801bb [FIX] mrp: _run_manufacture
There was a traceback when posting the message after creating the manufacturing
order because we rendered the 'mail.message_origin_link' with an id as
origin and not a recordset.

opw 775295
2017-10-09 17:23:30 +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
Xavier Morel 03a2a57163 [FIX] unfuck JS docstrings 2017-10-09 16:50:47 +02:00
Manuel Vázquez Acosta 0c4ba97f35 [CLA] add member to merchise CCLA
Closes #19568
2017-10-09 15:51:22 +02:00
mncoon e792bdbcaf [FIX] l10n_de: correction of tags for german reports 2017-10-09 15:43:28 +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
Pierre Masereel c7ca783e24 [FIX] stock: picking action_cancel multi
As the function 'action_cancel' is multi, we cannot  set the value
'is_locked' to True by using '='. Because it will raise an error if self
contains more or less than 1 record.

To fix this we call the 'write' method which support all cases
2017-10-09 11:51:57 +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
Khoi Nguyen 44f06a6646 [FIX] mrp: prevent quantity/lot/SN changes from work orders 'manager view'
This revision ensures that users cannot modify the current quantity or
enter lot numbers from the so-called manager view. This is because the
'tablet view' is not aware of the changes made in the manager view.
2017-10-09 11:11:10 +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
Odoo Translation Bot ded650083e [I18N] Update translation terms from Transifex 2017-10-09 10:53:17 +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
Stephan Rozendaal 4e91a64471 [CLA] signature for StephanRozendaal
Closes #19933
2017-10-09 10:29:57 +02:00
Pierre Masereel e7e37c70e7 [FIX] l10n_in_stock: wrong xpath
The xpath references a span that doesn't exist anymore since https://github.com/odoo/odoo/commit/ddf2b21bdf38492ce075d4ae96bb9323c6ef59dd

It has been introduce in https://github.com/odoo/odoo/commit/2b3c8e6ca9777f6264ecb3d1510dd292ed30ab9f
2017-10-09 10:26:34 +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
Laurent Smet c23ef9a9b6 [FIX] remove 'report' from rpc dispatcher
This feature no longer exists since 3425752eac

reported on github issue 19887
2017-10-09 10:03:22 +02:00