Commit Graph
127612 Commits
Author SHA1 Message Date
mehdi-ghezal 58e85bdec0 [FIX] sale_stock: qty calculation in procurement creation
When updating the qty on a confirmed sale order line,
we want the system to add new procurement qty
for the cancelled procurements. That way you can
leave the cancelled procurements for what they are.
2018-06-12 11:44:50 +02:00
rgarnau fe15b7a1f0 Update Eficent's CLA 2018-06-12 11:40:54 +02:00
rgarnau 46129e7530 [FIX] stock: scrapping consumable products allowing negative quantities
As for consumables stock levels are not that important,
it should be ok to scrap a consumable at all times,
even if the stock becomes negative.

Tests were added to check what happens with a consumable/stockable
product if stays positive/goes negative.
2018-06-12 11:40:28 +02:00
Christophe Simonis 284ed9216c [MERGE] forward port branch 10.0 up to 50ee813153 2018-06-12 11:39:34 +02:00
Yannick Tivisse dd3faf40fa [FIX] crm: Don't modify the sales team when removing the salesman
Purpose
=======

Currently, if we remove the salesman on the lead, the sales team will
be replace by either the sales team of the current user or the default
sales team.

That way, by removing the salesman, we loose information about the sales
team, and that way we loose information about the origin of the lead.

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

Don't overwrite the sales team when removing the salesman on the
the lead.
2018-06-12 11:34:03 +02:00
Sergio Zanchetta 9e418ccaf9 [IMP] pos_restaurant: make config items inheritable
Closes #22720
2018-06-12 11:32:45 +02:00
Sergio Zanchetta 49b93a08f5 [CLA] Signature for primes2h
Done at #22720
2018-06-12 11:29:40 +02:00
Sylvain LE GAL 5a6f6edb17 [IMP] point_of_sale: move barcode field into base
The field was already declared in base but added in the view in point_of_sale
only.

Remove the duplicated field definition on the model.

Closes #25070
Fixes #13544
2018-06-12 10:35:25 +02:00
Tony Gu 50ee813153 [CLA] add signed cla Shine IT 2018-06-12 10:23:06 +02:00
Tony Gu 45a179d93c [FIX] mrp: Unrelated product_template and product_product on the same BOM
Before this fix, we can create a Bom with both product_id and
product_tmpl_id filled where the product_id is not a variant of the
product_tmpl_id. This is unlogical and will be even trickier when the
user is not able to see the variant field on the BOM.

This fix puts the product_id back to False when the product_tmpl_id
is changed.
2018-06-12 10:21:40 +02:00
Daniel Dico 8be5cc0980 [ADD] base: set vat_label for Canada
Closes #25052
2018-06-12 10:19:11 +02:00
Luis González d5d797360a [FIX] base: Avoid exception when showing error in namespaced qweb node
Before this commit, if a SyntaxError or any other exception occurs in a
qweb attribute, and the path to the node contains at least one
namespaced tag, e.g.:

<mynode:node xmlns:mynode="http://example.com/mynode">
    <field t-att-value="'This is a TypeError' + []"/>
</mynode:node>

the following exception is raised, instead of the actual one:
lxml.etree.XPathEvalError: Undefined namespace prefix

After this commit, if the path to the failing node contains a namespaced
tag, the node is not retrieved, to avoid the above exception, So this
one will be raised:

Error to render compiling AST
TypeError: Can't convert 'list' object to str implicitly
Template: module.template_name
Path: /templates/mynode:node/field

In addition, a test case was included, to ensure this works as expected

Closes #24824
opw-1853232
2018-06-12 10:14:29 +02:00
Andreas Perhab e34a9ba58f [FIX] test_pylint: incompatibility between pylint 1.6 and python 3.6
reference: https://github.com/PyCQA/pylint/issues/1349

pylint 1.6 and python 3.5 (and below) should work fine, so no need to
force people to upgrade there.
2018-06-12 10:12:09 +02:00
Long Do 869b833618 [FIX] mrp_repair: fix templates duplicating report when printing it
We are looping twice on docs. To have a minimal diff we just try to reuse
existing variable but with loops correctly taken into account.

Closes #25008 .
2018-06-12 10:05:52 +02:00
hoanglong87 b0f1886f97 [CLA] Update tvtmarine-automation.md 2018-06-12 10:05:52 +02:00
Goffin Simon bf3bb5ef50 [FIX] mrp, stock: Duplicate Detailed Operations
Steps to reproduce the bug:

- Create a stockable product P tracked by serial number with route BUY
- Create PO with 5 P and validate the PO
- On the picking, just set one serial number and create a backorder
- Go on the backorder

Bug:

8 lines were created:
    - 4 lines with one reserved quantity
    - 4 lines with no reserved quantity

Now only 4 lines with one reserved quantity are created.

opw:1847714
2018-06-12 10:01:18 +02:00
Goffin Simon cb3e415a7c [FIX] mail: Allow modifying followers in multi company/with private channel
It's a backport for https://github.com/odoo/odoo/commit/b795d69ce8aca2e88182c6d6d6b7af54d536f9dd
It also backports this fix https://github.com/odoo/odoo/commit/c49265afa1b0610d52fd356df26491546f1905bf

It also fixes #13578
2018-06-12 09:52:12 +02:00
Mathieu Duckerts-Antoine af999f40dd [IMP] *: review date type groupbys in search views archs
The parent commit allows to select a specific interval for any
date or datetime field in the groupby menu. This makes some filter
akward, for instance "Order Month".

Accordingly, we have rewritten the string and help attributes in
search views archs and removed groupbys related to the same field
(that would have become redundant).
2018-06-12 09:22:30 +02:00
Mathieu Duckerts-Antoine e1aac71769 [IMP] web: add support for interval selection in groupbys
In this commit, we extend the search view to allow the selection
of some intervals for date or datetime fields in groupby menu.
The valid intervals are day, week, month, quarter, and year.

It is also possible to add a button 'Group By' in the control panel
owned by a graph view in case it is declared 'embedded' (e.g. in a
dashboard view).

Note that have three new generic reusable widgets have been introduced
in this commit: DropdownMenu, GroupByMenu, and FiltersMenu.
2018-06-12 09:22:20 +02:00
Mathieu Duckerts-Antoine 7bf5dd687b [REF] web: split search_menus in separate files 2018-06-12 09:22:04 +02:00
Simon Lejeune e476c0f15f [FIX] web_tour: properly adapt to 9c262fe6f8 2018-06-11 21:45:08 +02:00
Simon Lejeune ae6b85cf7a [FIX] web_tour: properly adapt to 9c262fe6f8 2018-06-11 21:44:34 +02:00
Christophe Monniez 9c25bcd5d0 [REL] saas-11.4 2018-06-11 20:52:39 +02:00
Christophe Simonis b6496f8b38 [MERGE] forward port branch 10.0 up to 9032617120 2018-06-11 19:20:38 +02:00
Christophe Simonis 9032617120 [MERGE] forward port branch 9.0 up to 06a085b25f 2018-06-11 18:39:45 +02:00
Martin Trigaux c5946d6c5e [IMP] product: add test
To make sure the changes made at #24905 are tested
2018-06-11 17:47:39 +02:00
Martin Duvergey abe7e6c376 [FIX] product: add missing break statements in for/else constructs
The code of the product was always the default one, not the one of the seller

Closes #24905
2018-06-11 17:47:38 +02:00
Martin Duvergey d0a2a4eef6 [CLA] mduvergey signs Odoo's CLA
Done at #24905
2018-06-11 17:47:38 +02:00
Pierre Masereel 76662a0a66 [REF] stock, delivery: entire package manipulation
We added a model to work easily with packages, using the quant packages
was not a good solution to move entire package and plan package moves,
because we always had to give the picking in context, and create some
move lines, so it was only possible when state was assigned (when move
lines exists)

So we created a model package level, linked to picking, move and move
lines allowing to easily plan package transfer and put in pack.
2018-06-11 17:46:19 +02:00
Yannick Tivisse 06a085b25f Revert "[FIX] event: fix rights for event.registration"
This reverts commit 05e914629b
while waiting a clear commit message to justify an access right
modification in a stable release.
2018-06-11 17:15:50 +02:00
Invitu e44cb0ae34 [FIX] hr_attendance: Correctly compute worked hours
Fixes #10381 (wrong calculation on datetime)

if worked hours > 24h, calculation is wrong because "seconds" funtion does not take into account days
See: https://docs.python.org/2.4/lib/datetime-timedelta.html

total_seconds() should be used instead of seconds function
2018-06-11 17:13:29 +02:00
RomainLibert 05e914629b [FIX] event: fix rights for event.registration 2018-06-11 17:12:23 +02:00
Adrien Dieudonne b4a8338959 [FIX] barcodes: hide barcode input 2018-06-11 17:01:33 +02:00
Simon Lejeune d4eb1e33a1 [FIX] stock: action_done: picking_type_id in created move
If the user only fills move lines and not move, this method will create
the needed ones. When creating them, a picking_type_id was not set.

task-1830757
2018-06-11 17:01:15 +02:00
William Henrotin d8887c5346 [FIX] stock: mandatory default source location
On the picking type form, the default source location is not mandatory
for 'customer' picking types. If this field is empty, creating a
'customer' picking will set a vendor location as source one.

task-1830757
2018-06-11 16:59:57 +02:00
Swapnesh Shah 651a7bdada [FIX] sale: disable link from pivot view for sale
Before this commit, linking was enable for pivot view of model sale.report.
User that click on a cell will be redirected on a default view list/form
with all fields.

Now linking is disabled.

If you want to open the sale order on click, you need to start with the
pivot view from model sale.order.

This commit closes #25079
2018-06-11 16:59:37 +02:00
Erick Birbe 10c1187e7b [FIX] website_sale_stock: product cart_qty without request
Reading product's `cart_qty` computed field directly with the XMLRPC API
failed because, in such case, the request is unbound.

Fixes #21530
2018-06-11 16:59:37 +02:00
Arnaud Baes 9c262fe6f8 [REF] web_tour: allows to include RunningTourActionHelper
Moves this class in an Odoo module so that other addons are able to
require and include the class in order to add different helpers.

This will be usefil in the `stock_barcode` module that will add a `scan`
helper.
2018-06-11 16:56:55 +02:00
Simon Lejeune cea38a8ea9 [REF] stock: scrap action
Complete the scrap action so that it doesn't crash for some reason when
called from a do_action in javascript.

task-183075
2018-06-11 16:56:55 +02:00
Swapnesh Shah af752e7158 [FIX] website_forum: Fixed maximum recursion depth
Before this commit, you can set the question of a post like the post itself.
That will generate a traceback:
    RecursionError: maximum recursion depth exceeded in comparison

Now we check that there is no recursion
2018-06-11 16:49:38 +02:00
Arnold Moyaux aad104621c [IMP] delivery: package code not only in debbug.
It could be usefull for the user to create code that
couldn't be loaded by odoo.

task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 32b18dd07e [FIX] web: correct 'popup blocked' error message.
task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 6892cc8322 [IMP] delivery: handle multiple trackers
Easypost return multiple tracker links for a single
picking. Currently it returns one link per package.

*_get_tracking_link instead of returning a simple string,
it could return a list of list with data
[[tracker number, tracker_puclic_url], ...]
stored as a json dump.

This commit add a check on carrier_tracking_url
in order to check if it has a json format. In this case it
will log a note and will not use the url action.
2018-06-11 16:33:52 +02:00
dut-odoo a19236205a [IMP] sale, stock, website_sale: add easypost in settings
task-id: 30450
2018-06-11 16:33:52 +02:00
Petar Najman 824f5eec1a [CLA] Modoolar signs Odoo's CCLA
Closes #25181
2018-06-11 16:25:43 +02:00
Simon Lejeune 17984be82c [REF] barcodes: form view: better error messages 2018-06-11 16:18:18 +02:00
MOENS Alexandre d13fb14f1e [REF] barcodes: pager: warn if a pager isn't present
If a barcode triggering an action on the pager was scanned while a pager
wasn't present in the page (see the workorder tablet view), a traceback
happened.

We display a warning instead.

Task: 1831245
2018-06-11 16:18:18 +02:00
MOENS Alexandre defff5f191 [REF] barcodes: form view: multiples button for a single trigger
This commit allows multiple button to share the same `barcode_trigger`
attribute. Note that it only makes sense if a single button is displayed
at a time.

Task: 1831245
2018-06-11 16:18:18 +02:00
Martin trigaux 3419b260fb [CLA] backport of WT-IO-IT GmbH signature
backport to 9.0 as asked at #25185
2018-06-11 16:13:14 +02:00
Simon Lejeune 8c524b265a [MERGE] mrp, sale_mrp: produce wizard refactoring
See all components in the produce wizard, not only the tracked ones.
Task 55494
PR #24087
2018-06-11 16:07:49 +02:00