Commit Graph
110340 Commits
Author SHA1 Message Date
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
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
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
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
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
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
Richard Mathot 824a7e86ed [IMP] delivery: make test multicurrency-resistant 2017-06-13 14:03:06 +02:00
Thibault Delavallée 5d40c0d77d [FIX] website_account: call super of right class 2017-06-13 11:00:53 +02:00
Thibault Delavallée f1f0755262 [FIX] hr_recruitment: fix template name to ease ordering
Commit 57b8b9a057 changed templates used in recruitment. However we try
to stick on using the main model name when naming templates. Templates
subject may be whatever you want but templates should use main model as
name to order them and ease their use.
2017-06-13 11:00:36 +02:00
Thibault Delavallée 37bb253166 [FIX] account: allow to reinitialize module
Account demo data try to add lines to payment terms. However when
reinitializing the module similar lines are added and a constraint
raises as there should not have duplicates. This commit voids
payment terms before refilling them.
2017-06-13 10:59:22 +02:00
Fabien Pinckaers 57b8b9a057 [IMP] hr_recruitment: better email template 2017-06-12 23:14:08 -07:00
Fabien Pinckaers 23167ae585 [IMP] hr_recruitment: typo 2017-06-12 23:14:08 -07:00
Joren Van Onder 4d461cbe41 [IMP] point_of_sale,pos_reprint: allow reprinting without POSBox
Closes #16452
2017-06-12 17:16:02 -07:00
Fabien Pinckaers aceabdbca1 [IMP] hr: show company_id on hr.job 2017-06-12 15:46:01 -07:00
Christophe Simonis a47a95cde0 [MERGE] forward port branch saas-16 up to 76262f2043 2017-06-12 20:41:44 +02:00
Christophe Simonis 76262f2043 [FIX] web: handle correctly deactivation of duplicate option
This new behavior has been introduced by previous forward-port.
2017-06-12 20:10:11 +02:00
Christophe Simonis 50d8ea1d58 [MERGE] forward port branch saas-15 up to aae12c2bad 2017-06-12 19:37:28 +02:00
Christophe Simonis aae12c2bad [MERGE] forward port branch saas-14 up to 62fec71568 2017-06-12 19:19:42 +02:00
Christophe Simonis 62fec71568 [MERGE] forward port branch 10.0 up to fcc33f3e09 2017-06-12 18:55:24 +02:00
Christophe Simonis fcc33f3e09 [MERGE] forward port branch saas-11 up to 6ceecffcad 2017-06-12 18:52:53 +02:00
Christophe Simonis 6ceecffcad [MERGE] forward port branch 9.0 up to d9d455bea3 2017-06-12 18:18:05 +02:00
Christophe Simonis d9d455bea3 [MERGE] forward port branch saas-6 up to 5ae9205070 2017-06-12 18:12:16 +02:00
Christophe Simonis 5ae9205070 [MERGE] forward port branch 8.0 up to 06141c34a5 2017-06-12 18:08:03 +02:00
Fabien Meghazi 488519ef89 [IMP] assetsbundles: show css compiler returncode if no output 2017-06-12 17:38:33 +02:00
Goffin Simon 7bc52a34ba [FIX] sale_margin: margin in company currency in sale.report
The margin must be expressed in the company currency like price_total
or price_subtotal.

opw:746038
2017-06-12 16:54:29 +02:00
Christophe Simonis 222cca2feb [FIX] crm: valid the salesteam when programmatically change the user of a lead
Implement it as a constraint.

Better implementation of fdc8749888
2017-06-12 16:48:08 +02:00
Cédric Pigeon b5a224a583 [FIX] add missing multi-company security rule for stock_location_route
Multi-company rule for stock_location_route

opw:746761
2017-06-12 16:23:21 +02:00
Martin Geubelle a4d9292a12 [FIX] web_kanban: allow column creation on custom model
This is a back-port of the commit https://github.com/odoo/odoo/commit/1a2c05e98bba7694831c82b7be8bb81a9c46535c
that had been applied in saas-16.

As this has been considered as a bug, it should be fixed in previous versions.

No need to forward-port it after saas-15 then.
2017-06-12 16:16:59 +02:00
fwi-odoo 06141c34a5 [FIX] auth_oauth: don't assume that google and facebook providers always exist
Before this commit, it was not possible to reach the general settings when one
of the "default" provider was delete.
After this commit, we don't assume anymore that there are google and facebook
providers.

opw-746907
2017-06-12 15:13:09 +02:00
Thomas Binsfeld 2dc82664ae [FIX] purchase: billed qty
In a SO, the "Invoiced Qty" can decrease if the refund is generated from
the SO. It doesn't decrease if the refund is generated from the Invoice.
However, we don't have this mechanism in a PO since the invoice is not
generated directly from the PO. There is therefore no way to decrease
the "Billed Qty".

We authorize the "Billed Qty" to decrease in the case of PO.

Backport of c6a7e4fbb9

Closes #17564
opw-747038
2017-06-12 14:49:02 +02:00
Nicolas Martinelli 6582781058 [FIX] hr_expense: multi-currency
When an expense sheet contains several expenses with various currencies,
some issues arise:
- the currency is not specified in the form view
- the report mixes the currencies
- the total amount doesn't make any sense

Fixes #17341
opw-745714
2017-06-12 14:43:05 +02:00
qsm-odoo f8285ef439 [IMP] website: add a way for css to detect if flex can be used
Website content is not supposed to use flex as it is not supported by
some old browsers. This commit provides a way to use flex only for
browsers which support it. When designing a snippet, you can use flex
to design elements and then write other style for when flex is not
supported.

Using flex should however still be avoided when possible. But hopefully,
this commit will allow to build greater snippets whose ugly non-flex
style can be disabled on demand or dropped in a future odoo version.
2017-06-12 14:04:56 +02:00
xmo-odoo c257daf310 [FIX] account: import does not set partner_type
When creating an account.payment via the form view, an onchange sets the
partner_type based on the payment_type (which has a contextual default)
and the field is view-required.

When importing however if the user does not specify a partner_type
(which they are not specifically told about) the payments will be
created with no partner_type and thus classified as "internal payments"
and will not appear in either the Sales > Payments or the Purchases >
Payments, confusing them and making them think the import has failed
despite having correctly validated and raised no errors.

Add a default_partner_type matching each action's domain (and default_payment_type) such that the imported payments are correctly classified by default.

OPW-746479

fixes #17388

closes #17497
2017-06-12 12:16:16 +02:00
Xavier Morel fe6ce260a5 [FIX] P3: hash collections iteration issues
See various commits for information

Closes #17111
2017-06-12 12:08:39 +02:00
fwi-odoo b6a08dc982 [FIX] web: hide 'duplicate' action for ir.model.fields
It shouldn't be possible to duplicate ir.model.fields. Add attribute
´duplicate´ which can be set to false to hide the duplication option in the
action menu.
2017-06-12 11:14:55 +02:00
Nicolas Lempereur ed61da6793 [FIX] base: duplicate company => duplicate partner
The name of a company is uniq. The name of a company comes from a
partner and is required.

Thus duplicating a company didn't work.

With this change, if no partner is overriding the copy, the current
partner is duplicated and associated to the new duplicated company.

opw-746106
closes #17532
2017-06-12 11:14:06 +02:00
Xavier Morel 5654a1ab95 [ADD] P3: hash randomisation docs 2017-06-12 11:04:23 +02:00
Xavier Morel 4957296f1d [FIX] P3: incorrect dependencies
website_sale_digital overrides a method defined on
website_portal_sale, but only depends on website_portal and extends
the base controller from website_portal. Depending on the (relative)
order in which the system decides to load website_sale_digital and
website_portal_sale we can end up with the former's template but the
latter's methods (without the proper context data). Which ends up
commonly crashing in P35.

Fix dependencies and controller inheritance.
2017-06-12 11:04:23 +02:00
Xavier Morel ea21c7a8ee [FIX] P3: try to write fields in source order
When adding a Python constraint on a (relational) field which uses an
other (relational) field, the order in which the fields are written is
also the order in which they are checked, and if a constraint depends
on a sibling field this might blow up in P3, here as in as in
test_new_api.message.Message (_check_author constraint depends on
parent discussion's participants): test_11_stored would commonly fail
when creating a discussion with two participants and 3
messages (because the message's authors would be checked before the
participants had been associated with the discussion).
2017-06-12 11:04:23 +02:00
Xavier Morel ba1b88db34 [FIX] P3: sales tests relying on dict iteration order
test_00_sale_stock_invoice would blow up in Python 3, because the
test(s) relies on the iteration order of the products dict to know
where which line is (holy mother of caca) an set the relevant line's
data by indexing directly into it.

This would fail (with very odd results) in Python 2 and 3 as it could
set information on the "wrong" order line aka the order line for a
different product (and invoicing mode/whatever) than intended.

Fix the issue by hard-coding the products iteration order (to the
iteration order I get in Python 2.7.10 on that dict literal) using an
OrderedDict.
2017-06-12 11:04:23 +02:00
Xavier Morel a5283f90ce [FIX] P3: QueryURL relying on kw iteration order 2017-06-12 11:04:23 +02:00
Xavier Morel b62ba7ee1a [FIX] P3: initialisation order of columns
Python 3's hash randomisation means columns can be iterated — and thus
initialised — in any order (within a given model/override anyway),
which means there can be an implicit dependency on column
initialisation order e.g. (res.company).currency_id has a default
which fetches the currency_id of the company_id of the administrator,
and res.company has a _order=sequence,name, if the currency_id field
is created before the sequence the SELECT query will blow up as the
sequence column will not exist yet.

Attempt to always manipulate (iterate & initialize) fields based on
their order of definition using a global sequence number.
2017-06-12 11:04:23 +02:00
Xavier Morel 1d579221d7 [FIX] P3: bypass hash randomisation in modifiers
Compare Python dict to Python dict, no reason to dump the generated
modifiers to JSON before comparing them to JSON strings…
2017-06-12 11:04:23 +02:00