Commit Graph
111138 Commits
Author SHA1 Message Date
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
Dhaval Panchal ae9e5bb13e [IMP] purchase: replace invoice status string 'Bills Received' by 'No Bill to Receive' on PO
PURPOSE
=======

The status "Bills received" on the PO simply means that  there are no bills to receive for now, not that you have really received bills. This is confusing for users.

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

Replace the invoice status string on PO "Bills received" by "No Bill to Receive"
2017-06-13 15:55:47 +02:00
Prakash Prajapati 75df823347 [IMP] base: Don't display a button to change password
Purpose
=======

in an empty db, when creating manually a user, there is some noise on the form

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

- Rename application into "Application Accesses"
- Remove the button to change password, just keep the action, normally, you don't have to do that.
2017-06-13 15:49:33 +02:00
Christophe Matthieu 83115b2a10 [FIX] web: SelectCreateDialog uses the domain of the view when searching
before this fix: the domain is used when opening the dialog but it is not
used if the user update the filter or the group_by.
2017-06-13 15:47:47 +02:00
Christophe Matthieu 2687571781 [FIX] account: Improved performance when validating an invoice
When doing a delete, the cache is cleaned, putting an unlink in a loop
multiply the number of requests made (for access rules, relational
field, recompute ...) by the number of rows. The use of a mapped improves
the speed of validation of an invoice.
2017-06-13 15:45:20 +02:00
Axay Javiya 4fe90a4fb4 [IMP] hr_recruitment: Convert yml into python test case 2017-06-13 15:38:50 +02:00
Richard Mathot 2e6c675dd6 [FIX] delivery: fix 824a7e86ed
This test do not simply depend on company's currency; it also depends on
installed pricelists and taxes... It is safer to run it after the
installation of all these modules, else you can observe different result
depending on the modules installation order.
2017-06-13 15:13:16 +02:00
Jérome Maes c864660466 [FIX] sale_timesheet: trying to fix random rounding bug ...
Date is not a good criteria to ensure deterministic
order of timesheet line during revenue computation.
So, adding 'id' seems a good idea.
2017-06-13 15:12:43 +02:00
Mehul Patel 151ec5c0fb [IMP] website_quote : set default value for require_payment on SO and quote template
PURPOSE
=======

In the payment options there are 3 radio buttons given , but as per the normal behavior of radio,  there must be one selected by default.
2017-06-13 15:10:15 +02:00
Nicolas Martinelli 05ef0790c9 [FIX] account_asset: depreciation rate date
- Activate multi-currency
- Define a rate today (e.g. 2017-06-01) and next month (e.g. 2017-07-01)
- Create a deferred revenue on 2017-07-02 in the foreign currency
- Post the first line

The rate taken is the rate of today, not the rate of next month.

opw-745509
2017-06-13 14:35:11 +02:00