Commit Graph
117156 Commits
Author SHA1 Message Date
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
Christophe Simonis 544353c865 [MERGE] forward port branch 9.0 up to f4bd1fd9d2 2017-06-14 16:42:49 +02:00
Darshan Kalola 7b4748835c [FIX] project: merge tasks should be filled automatically.
With the new views, the merge task feature did not properly precomplete the selected tasks.  This is because they do not support the command 4 when creating a new record.  This will be fixed at some point, but meanwhile, we can just simply return the selected ids in the default_get.  This makes the code slightly simpler.

(PR #17566, issue 746867)
2017-06-14 16:37:20 +02:00
Lucas Perais (lpe) 50e9739eb5 [FIX] point_of_sale: recompute bank statement balance before validating session
Before this commit, the return flow in the pos would not work if closing the pos session intervened before the return payment registration.
The balance of the the statements was not updated before going to the validate step.

After this commit, we force the recomputing of the relevant fields (i.e. balance_end_real), to reflect reality and permitting validatioon afterwards

Backport of e27a3b185e (on #17438)
Closes #17599
OPW 743763
2017-06-14 16:15:50 +02:00
Goffin Simon 6c94264f99 [FIX] website_sale: website payment terms issue with portal users
Steps to reproduce the bug:
-create a child contact of a company C
-invite the child contact as a portal user
-sign into the website and place an order w/ wire transfer as payment acquirer

Bug:
The payment term set on the quotation was not taken from the company C and
the default sales person  was not taken from company C too.

opw:745091
2017-06-14 16:14:53 +02:00
Lucas Perais (lpe) e27a3b185e [FIX] point_of_sale: recompute bank statement balance before validating session
Before this commit, the return flow in the pos would not work if closing the pos session intervened before the return payment registration.
The balance of the the statements was not updated before going to the validate step.

After this commit, we force the recomputing of the relevant fields (i.e. balance_end_real), to reflect reality and permitting validatioon afterwards

OPW 743763

Closes #17438
2017-06-14 16:12:03 +02:00
Dharmang Soni fd1a604b4a [ADD] doc: Mobile JavaScript documentation
* Create mobile.rst

(PR #14144, task 29027)
2017-06-14 14:56:00 +02:00
kso 83a499024c [IMP] stock: Group by product on lot/serial number list view
PURPOSE
=======

By default the list view of LN/SN should be group by products which is more readable for end user.

SPECIFICATION
=============

Default group by product on lot/serial number list view
2017-06-14 14:49:41 +02:00
Prakash Prajapati 1053dbf5f1 [IMP] mrp: Improve menuitems labels and display
PURPOSE
=======

Clean menus in manufacturing

SPECIFICATION
=============

* Operations > Orders
* Scrap > Scrap Orders
* Bill of materials > Bills of materials # bistray
* Move the menu "Work Order Messages" in Master Data
* Remove menu "Planning" if WO or MPS no active
* Menu "Orders to plan" > visible only if WO active
* Menu "Waiting for material availability" > visible only if WO active, put it above "Orders to plan"
* Master Data, order of submenus : Products / BOM / Routings / Work Centers
2017-06-14 14:33:30 +02:00
Raphael Collet 457b2725fe [FIX] ir_translation: validate translations with surrounding spaces 2017-06-14 14:26:50 +02:00
Raphael Collet ce7f31b0b0 [FIX] models: copy in a given lang must keep a field's neutral value intact
Issue: when using `copy` in a given lang, the value of XML/HTML fields is
copied in its translated form, making existing translations useless.  Fix the
value of such fields by storing their original value instead.
2017-06-14 14:26:50 +02:00
qdp-odoo f4bd1fd9d2 [ADD] l10n_fr_certification: module to ensure the inalterability of accounting in France. 2017-06-14 14:09:24 +02:00
Vandan Shah 6aae00c0f8 [IMP] mrp: Allow to group by product and change default measure in work order report
PURPOSE
=======

Improve the work orders report

SPECIFICATION
=============

- Allow to group by product
- Set `Real Duration` as default measure
2017-06-14 13:59:40 +02:00
kso 555a3c9f20 [IMP] stock: Improve tooltip for Alert date field on production lot
PURPOSE
=======

confusing tooltip on "Alert Date".

SPECIFICATION
=============

Replace the tooltip on alert date by : "Date used to determined what are the expired lots and serial numbers using the filter "Expiration Alerts".
2017-06-14 13:54:04 +02:00
Goffin Simon bc34ba015d [FIX] website_sale_options: variant color not selected
The variant color for option product were not visually selected
in website sale option modal.

opw:746425
2017-06-14 13:51:30 +02:00
Christophe Simonis c758e9043a [IMP] addons: rename leftover manifest files 2017-06-14 13:45:10 +02:00
Viral Thakar f17db829e1 [IMP] mrp: Improve empty lists messages
PURPOSE
=======

Improve empty list messages of the MRP application

SPECIFICATION
=============

* Manufacturing Orders
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZreG5WM3IyV29QaDg/view?usp=drivesdk
Expected :
Click here to create a Manufacturing Order.

Based on a Bill of Material, a Manufacturing Order will consume raw materials and produce finished products.

Manufacturing Orders can be generated automatically based on customer requirements or reordering rules.

* Work Centers Dashboard
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3Zra21mUWZoQ3VhcG8/view?usp=drivesdk
Expected :
Click here [add a link to work centers list view] to create a new Work Center.

Manufacturing operations are processed at Work Centers. A Work Center can be composed of workers and/or machines, they are used for
costing, scheduling, capacity planning, etc. The Work Centers are defined on the Routing's operations.

* Work Centers
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrbGZocVc1TXd6dUE/view?usp=drivesdk
Expected :
Click here to create a new Work Center.

Manufacturing operations are processed at Work Centers. A Work Center can be composed of workers and/or machines, they are used for
costing, scheduling, capacity planning, etc. The Work Centers are defined on the Routing's operations.

* Work Orders
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrSmpCU1pOaWpEQWc/view?usp=drivesdk
Expected :

Work Orders are operations to be processed at a Work Center to realize a Manufacturing Order. Work Orders are trigerred by Manufacturing Orders, they are based on the Routing defined on these ones.

* Unbuild Orders
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrUmpoN2ZzM2prazg/view?usp=drivesdk
Expected :
Click here to create a Unbuild Order.

Unbuild Orders are used to break down a product you manufactured or purchased into its components, based on its Bill of Material.

* Scrap Orders
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrZl9QdWRNZXRTTWc/view?usp=drivesdk
Expected :
Click here to scrap products.

Scrapping a product will remove it from your stock. The product will end up in a scrap location that can be used for reporting purpose.

* Work Order Messages
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrSWZocUU1MkwxRjg/view?usp=drivesdk
Expected :
Click here to create a new Work Order Message.

Work Order Messages are used to warn users about any change in the product, process, etc.
These messages will appear on the involved Work Orders.

* Routings
Current : https://drive.google.com/a/odoo.com/file/d/0B0ITmdw6h3ZrNE1FNFNXYWJWSzA/view?usp=drivesdk
Expected :
Click here to create a new Routing.

Routings define the successive operations that need to be done to realize a Manufacturing Order.
Each operation from a Routing is done at a specific Work Center and has a specific duration.
2017-06-14 13:40:38 +02:00
Christophe Matthieu 944f8e3353 [FIX] account: improve performance when validating an invoice
When doing a delete, the cache is cleared, putting an unlink in a loop
multiplies the number of requests made (for access rules, relational
field, recompute ...) by the number of rows. Doing it outside the loop
speeds up the validation of the invoice.

Backport of 10.0's 2687571781
2017-06-14 10:15:47 +02:00
Aaron Bohy a3bea9a62b [FIX] web: Form: delete the correct record
When the user duplicated a record 'A', and deleted the new record
'A (copy)' directly, the wrong record was deleted: 'A' was deleted
instead of 'A (copy)', because de id of 'A' was bound to the delete
handler, and it wasn't updated after the duplication.

Also correctly updates the record's offset after the deletion, so
that it doesn't produce a warning when deleting the last record of
the dataset.
2017-06-14 10:15:37 +02:00
Aaron Bohy 70624772b2 [FIX] web: Pivot: allow to click on a cell
Before this rev., when the user clicked on a data cell of a pivot
view, it crashed. This was due to several problems, fixed by this
commit.
2017-06-14 10:15:37 +02:00
Jérome Maes bc415bd137 [FIX] sale_timesheet: use float_compare in tests 2017-06-14 08:48:29 +02:00