Commit Graph
110417 Commits
Author SHA1 Message Date
Christophe Simonis ed2ddeccdf [MERGE] forward port branch saas-16 up to 1b50c829ef 2017-06-15 18:46:47 +02:00
Christophe Simonis 1b50c829ef [MERGE] forward port branch saas-15 up to 9713dc2e1f 2017-06-15 18:44:16 +02:00
Christophe Simonis 9713dc2e1f [MERGE] forward port branch saas-14 up to 96595772e0 2017-06-15 18:39:59 +02:00
Christophe Simonis 96595772e0 [MERGE] forward port branch 10.0 up to dc8b473a03 2017-06-15 18:35:46 +02:00
Christophe Simonis dc8b473a03 [MERGE] forward port branch saas-11 up to dd7b2556c6 2017-06-15 17:52:49 +02:00
Christophe Simonis dd7b2556c6 [MERGE] forward port branch 9.0 up to 9e324c061c 2017-06-15 17:48:26 +02:00
Simon Lejeune cb73aaf71b [FIX] stock: inventory adjustment and negative quants
It is still possible to have negative and positive quants in the same
location because of returns: if you send something to the customer that
is not there and you return it, you will still be able to reserve the
returned goods to send to another client.

Before, if you would do an inventory adjustment, it would not take into
account these returned quants and their negative counterpart, which made
them difficult to get out of the system.

This fix takes them into account by creating two movements for one
inventory line: move the positive counterpart to the inventory location
before getting back from this location the same quantity.

This way, even if you have 0 as quantity on hand but you have those 2
quants, it will eliminate them. (if you are increasing the stock, part
of the process might have done it automatically already).

Test cases contributed by @jir-odoo

Cherry-pick of be9dce625c
2017-06-15 17:42:10 +02:00
Christophe Simonis 9e324c061c [MERGE] forward port branch saas-6 up to 88802b066c 2017-06-15 17:29:17 +02:00
Christophe Simonis 88802b066c [MERGE] forward port branch 8.0 up to 89eca96476 2017-06-15 17:26:15 +02:00
Olivier Dony 89eca96476 [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:36:05 +02:00
Olivier Dony e40a4baf41 [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:34:47 +02:00
Olivier Dony 625c0d5d8e [FIX] anonymization: correct pickle protocol and import 2017-06-15 16:25:25 +02:00
Olivier Dony 16714a7e71 [FIX] auth_oauth: correctly register token field 2017-06-15 16:23:44 +02:00
Olivier Dony eaa3682bb6 [FIX] http: force protocol when missing in URL 2017-06-15 16:23:35 +02:00
Olivier Dony 4acfe3577b [FIX] sql_db: port fix from psycopg/psycopg2#459
NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.
2017-06-15 16:23:35 +02:00
Olivier Dony 0527564463 [FIX] auth_oauth: correctly register token field 2017-06-15 16:21:32 +02:00
Olivier Dony 692f47da6e [FIX] http: force protocol when missing in URL 2017-06-15 16:21:22 +02:00
Olivier Dony e3a52a9966 [FIX] sql_db: port fix from psycopg/psycopg2#459
NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.
2017-06-15 16:21:22 +02:00
Olivier Dony 090d7a51be [FIX] auth_oauth: correctly register token field 2017-06-15 16:17:35 +02:00
Florent de Labarre acf7c1460a account: Backport of a5361605
[IMP] account: hide deprecated accounts

To be consistent with other domain added at ee97028

Closes #15432
2017-06-15 16:06:42 +02:00
Olivier Dony d655824028 [FIX] http: force protocol when missing in URL 2017-06-15 16:01:40 +02:00
Olivier Dony eb8d919015 [FIX] sql_db: port fix from psycopg/psycopg2#459
NUL characters must not be used in query parameters,
as they will be ignored by libpq, being end-of-string
characters.

Preventing NULs avoids unexpected results from
queries. It is only necessary with psycopg2
versions before 2.7, which includes the upstream
fix.
2017-06-15 16:01:40 +02:00
Martin Trigaux b144e09a10 [FIX] sale_margin: apply same logic than sale override
If some required fields are not present in the created values, they are computed
based on the onchange.
This was introduced at 5c4765130 to allow to import sale order lines without
specifying uom.

If sale_margin is installed, the same issue will occure as it assumes there is
a value for product_uom

Add test, courtesy of Mourad Elhadj Mimoune, Akretion

Closes #17613
2017-06-15 15:43:36 +02:00
Nicolas Martinelli 2bf6005e6a [FIX] point_of_sale: tax on line
Complement of commit f0f45c8fa2

The result of the onchange is incorrectly interpreted by the web client,
leading to taxes not saved.

opw-746827
2017-06-15 13:55:41 +02:00
Dharmraj Jhala 156e07f638 [IMP] project: Display kanban status on chatter instead of state
Purpose
=======

The new kanban status history in the chatter is not clear for the end user.

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

When the state of a task is change the chatter should display the kanban state custom label instead of the kanban state
2017-06-15 13:47:02 +02:00
Nicolas Lempereur b79b27c2b2 [FIX] website: browser lang > default lang revert 174d7e8
This reverts commit 174d7e8e49.

The default language is the language if no lang corresponding to
the current language is found. Thus the browser language if available in
languages has priority over the default language.

opw-746776
closes #17637
2017-06-15 13:39:05 +02:00
Martin Geubelle 0c2e018d4c [FIX] web: display dashboard graphs in full-width
With the new views, the class `o_field_widget` is added on every field widget
and is styled with `display: inline-block`.

The dashboards used to display graphs in full-width so this behaviour is
restored.
2017-06-15 13:22:08 +02:00
Martin Geubelle d88d1abcf0 [FIX] web: reimplement group_by_tooltip option in kanban
This option hadn't been implemented in the new views.
It allows to display informative explanations as tooltips on column over.

It can be set on a many2one field in the kanban view, e.g.:

```<field name="stage_id" options='{"group_by_tooltip":
    {"<tooltipFieldOnStageModel>": "<ABeautifulTitle>"}
}'/>
```

An extra RPC needs to be done on the many2one relation to fetch these additional
fields and the data are stored in the datapoint under the key `tooltipData`.
2017-06-15 13:22:07 +02:00
qsm-odoo 89fdd259ac [FIX] web_kanban: restore elements which broke over 2 lines
Since commit https://github.com/odoo/odoo/commit/577311c0e11edca5740b232881a16dda2ffd32dc,
some elements are now put in a <span/>. This broke the layout in some
cases as the <span/> elements are displayed as blocks in dashboards since
https://github.com/odoo/odoo/commit/a86d6a7df980d55dd0af007f77c6bb039771525a#diff-4b309c73c7896544c509c1374cc3b682R58

As there is no apparent reason for this, this commit fixes the
problem by making these elements have the `inline-block` display.

opw-747119
2017-06-15 12:13:35 +02:00
qdp-odoo b5eec3414b [FIX] l10n_fr_certification: don't copy hash strings and sequence numbers.
copy() was created corrupted data since copied moves already had the parent's info
2017-06-15 12:11:43 +02:00
Martin Geubelle 46751de506 [FIX] web: correctly style o_status class
The `o_status` style has been moved in a previous rev. in `fields.less` which
is only for `o_field_widget` nodes.

This class however is used in other context than a field (e.g. on a label in
the project.task.type form view) so its style needs to be placed at an upper
level.
2017-06-15 10:59:35 +02:00
Nicolas Martinelli baad8f934e [FIX] mail: format amount
Similarly to functions `format_date` and `format_tz`, we add a function
in order to format amounts in the mail template.

It can be used, for example:
`${format_amount(object.amount_total, object.pricelist_id.currency_id)}`

opw-746088
2017-06-15 10:27:38 +02:00
mourad-ehm f75667bba9 [CLA] Update akretion CCLA
add mourad-ehm

Closes #17605
2017-06-15 10:20:59 +02:00
Nicolas Martinelli 261aa927b6 [FIX] point_of_sale: add_payment
Ease the extension of `add_payment`.

From work of @benwillig

Closes #17598
opw-747348
2017-06-15 10:13:53 +02:00
qdp-odoo df4a81c697 [FIX] l10n_fr_certification: fix wrong xpath.
Bug introduced with the latest forward-port. Since the invoice's workflow has been removed in bc8d5dbf2c, the button name to cancel an invoice changed also.
2017-06-15 10:12:00 +02:00
Lucas Perais (lpe) 46263eb398 [FIX] stock: backport fix negative quants
Original commit (in 10.0) be9dce625c

From original commit:
It is still possible to have negative and positive quants in the same
location because of returns: if you send something to the customer that
is not there and you return it, you will still be able to reserve the
returned goods to send to another client.

Before, if you would do an inventory adjustment, it would not take into
account these returned quants and their negative counterpart, which made
them difficult to get out of the system.

This fix takes them into account by creating two movements for one
inventory line: move the positive counterpart to the inventory location
before getting back from this location the same quantity.

This way, even if you have 0 as quantity on hand but you have those 2
quants, it will eliminate them. (if you are increasing the stock, part
of the process might have done it automatically already).

Also, a key of context has been added which authorizes the process described above in the case of both a tracked product and no lot_id on the stock inventory

OPW 743107
Closes #17167
2017-06-15 08:42:57 +02:00
Aaron Bohy f6525c6b6c [FIX] web: BasicModel: onchanges: send all values
Since commit ebd17217c4, values of readonly fields inside x2many
fields weren't sent for onchanges, whereas they should. This was
for example an issue on the stock.picking form view (which is in
state 'draft' by default). If the user added a stock.move, the
state field on the move wasn't sent for the onchange, and thus the
state field on the picking was set to false.
2017-06-15 08:39:50 +02:00
Joren Van Onder 86cf4f41b7 [FIX] point_of_sale: don't race order destruction in customer display
By the time the product images are downloaded the current order object
may have already been destroyed. This can happen when e.g. clicking on
the 'Next order' button.
2017-06-14 15:28:24 -07:00
Joren Van Onder 9f31e50ee9 [FIX] point_of_sale: don't launch Firefox before Odoo has started
When using Wi-Fi the Odoo instance on the POSBox will start after a
Wi-Fi connection is established. This takes a bit longer than when
you're using a wired connection. If Firefox gets started before you
end up with a 'Could not connect to localhost:8069' error.
2017-06-14 14:02:00 -07:00
qsm-odoo d31cb0ff8b [MERGE] website, web_editor, website_sale: various changes
- Snippet options reorganization (background, gallery)
- Website menu reorganization
- Gallery snippet edition behaviors
- Various editor behaviors

See merge sub-commits for details.

task-30407
2017-06-14 17:55:16 +02:00
Deep Patel ef9fcdeaea [FIX] web_editor: make sure gallery images are editable
When added for the first time, they were not editable until the page
was saved.
2017-06-14 17:49:56 +02:00
dbh 2fe1b0c0a6 [IMP] website, web_editor: reorganize background snippet option 2017-06-14 17:49:56 +02:00
dbh 90219a7e0a [IMP] website_sale, web_editor: make sure page elements are properly editable 2017-06-14 17:49:56 +02:00
dbh 0c65a2cec8 [IMP] web_editor: in link dialog, do not hide 'open in new page' if empty link 2017-06-14 17:49:56 +02:00
dbh 137c4f5d76 [IMP] web_editor: improve icon color edition
- Make sure icon colors can be edited the same way as text
- Improve recent color behavior
2017-06-14 17:49:56 +02:00
dbh 6ad2ae3035 [FIX] web_editor: fixed issue of chrome triple click
When an user triple-clicked on a paragraph and then typed text, the
paragraph was removed instead of its content (so the new text was
added at the beginning of the next paragraph).

See: http://stackoverflow.com/questions/38467334/why-does-google-chrome-always-add-space-after-selected-text
2017-06-14 17:49:56 +02:00
dbh e011d58bee [IMP] website, web_editor: improve the gallery snippet
- Change the info message "Add Images from Customize menu" to
  "Add Images" and make it clickable

- Reorganize snippet options menu

- Improve the image dialog to be able to select/unselect

- Make sure previews are adapted when changing gallery images
2017-06-14 17:49:56 +02:00
dbh c23a3fd9cc [FIX] web_editor: doubleclick on image in a link
Before this commit, when clicking on an image which is in a link, both
the link edition dialog and the image edition dialog were opened. Now
only one opens.
2017-06-14 17:49:56 +02:00
dbh c083133255 [IMP] website: reorganize the customize menu
- Change the submenus order
- rename "Install Apps" to "Add Feature" and redirect to the website settings
2017-06-14 17:49:56 +02:00
Christophe Simonis 93e222bc08 [MERGE] forward port branch saas-11 up to 544353c865 2017-06-14 17:29:16 +02:00