Commit Graph
112939 Commits
Author SHA1 Message Date
Richard Mathot 696ded4773 [FIX] delivery: more user-friendly info message 2017-09-29 16:56:16 +02:00
amoyaux 7c501e4bf0 [FIX] mrp: product produce line fail with consumed SN
Use case to reproduce:
- Create a product with a BOM needing one component tracked by SN
- Create a MO for this product with 2 to produce
- Produce 1
- Produce the other -> 2 lines and a wrong lot proposed

This happens when the quantity to consume is equal to 0
or if the qty_done on a move_line is equal to the reserved
quantity.

This commit change the condition after the float_compare in
order to take into account the equal comparison.
2017-09-29 16:55:43 +02:00
amoyaux 7dfcbc6b96 [REF] mrp: move test MO generation to common
Since the function in order to generate a MO is usefull
for mrp test. It could be great if we could use it in
every test.

This commit also add 3 arguments in order to modify the
quantity needed for each product.
2017-09-29 16:55:36 +02:00
Hardik Patel 8ca4126f9d [FIX]stock: while picking is done, red line shown in detailed operations --> Adding state!=done in that condition. 2017-09-29 16:55:20 +02:00
fwi-odoo a7883df9ea [IMP] sale, stock: use the new column_invisible attrs in the views 2017-09-29 16:49:20 +02:00
fwi-odoo da136d83bb [IMP] web: x2m list: conditionnaly hide a column
This commit introduces a new way to hide a column in a x2m list view.
The attribute 'tree_invisible' can be add in the field attrs in the x2m
view definition. This attribute can use the 'parent' key to make a reference
to the parent record (e.g. 'parent.id').
2017-09-29 16:49:20 +02:00
Simon Lejeune a7d1740e47 [FIX] stock_account: restore the valuation action
Introduced in rev 0f7d2d7cf7 and wrongly
removed in ce4da0531d
2017-09-29 16:43:00 +02:00
Simon Lejeune 50f0b5ebaf [REF] stock_account: cost method changes
When changing the costing method for a FIFO product to AVCO or standard,
we update the standard price of the product to the average cost in
stock.
2017-09-29 16:43:00 +02:00
Vandan Shah 4524d93be0 [IMP] barcodes: corrected barcode commands of CMD-PREV and CMD-NEXT as well as changed qunit test case accordingly 2017-09-29 16:42:30 +02:00
qsm-odoo da11387587 [FIX] web, mail: complete commit https://github.com/odoo/odoo/commit/87f1e360a89eb7617d5fd60cad58a143bea441df
Tests are overridding the `config` object directly but this was wrongly
done. Also, tests had to be adapted to set the `isMobile` value
correctly.
2017-09-29 16:39:06 +02:00
pro-odoo 87560ec8ec [FIX] account: show default taxes in settings
Upon generation of a CoA from templates, taxes are created by default (lowest sequence) but that wasn't reflected in the settings. Was PR#19802
2017-09-29 16:35:47 +02:00
Raphael Collet a16c44210a [FIX] models: skip an SQL query when its result is known to be empty
In method `search`, simply make an abstract interpretation of the domain to
determine whether it is equivalent to false.  In that case, skip the query.
2017-09-29 16:14:57 +02:00
Raphael Collet 5875a253dd [REF] expression: simplify domain processing for x2many fields
Make it easier to take advantage of subqueries whenever possible.

Also remove some weird semantics of the operator `not in`: searching with the
domain `[(F, 'not in', [])]` was returning the records with relations, instead
of all the records.  The new semantics makes `[(F, 'not in', ids)]` equivalent
to the complement of `[(F, 'in', ids)]` in all cases.
2017-09-29 16:14:57 +02:00
Raphael Collet 871b9693a1 [REF] expression: do not flatten query params, and simplify code
Avoid the flattening of params, which makes the serialization of subqueries
almost impossible.
2017-09-29 16:14:57 +02:00
Aaron Bohy 36b4d78a26 [FIX] web,mail: reset focus after onchange on x2many
Rev. 2728fe1 introduced an attempt of restoring the focus on the
currently focused field in an x2many list after an onchange
returned, and the list has been updated. However, it was often
wrong (e.g. leaving a field by pressing tab/shift+tab, clicking on
another field...) and reset the focus on an unexpected field.

In addition to fixing this issue, this rev. also unifies the helper
functions to get and set the cursor positions in an input or
textarea, as they were duplicated between mail and web.
2017-09-29 16:02:36 +02:00
qdp-odoo f9dc8cf76d [FIX] account: email template name changed (again)
As per discussion on commit https://github.com/odoo/odoo/commit/48a8d68194c4802320984cbd487ccd650e1bb096#diff-356151c8ac0f23574964c7c9da863c70, I add the App name in the template name.
2017-09-29 15:43:40 +02:00
Martin Trigaux 5e7cbc6457 [IMP] sale_timesheet: use float_time widget
And clean the view
2017-09-29 15:38:12 +02:00
Martin Trigaux 8f1e83e71a [IMP] base: adds float_time t-options
To be able to use
  t-options="{'widget': 'float_time'}"
in QWeb views as we have the widget="float_time" in classic views
2017-09-29 15:38:06 +02:00
Simon Lejeune 0b664a973c [FIX] stock: product: prevent updating type if linked to a move line 2017-09-29 14:55:20 +02:00
Sanjay Jamod 5a877b5671 [FIX] account,sale: Don't show sale/invoicing settings if only ecommerce installed 2017-09-29 14:50:44 +02:00
qsm-odoo c068cb62c6 [FIX] mail: make "Schedule activity" text smaller in mobile 2017-09-29 14:41:41 +02:00
qsm-odoo 87f1e360a8 [FIX] web, mail, base: config's isMobile definition
The `isMobile` variable was defined at the right place (`config.device`)
but was set at the wrong place (`config`).

Thank you for making me author of all the `isMobile` lines by
the way... :)
2017-09-29 14:41:41 +02:00
Richard Mathot 34a7d9a1fb [FIX] delivery: delivery_message must also be reset when changing carrier 2017-09-29 14:30:17 +02:00
kap-odoo dd684e08b4 [FIX]Stock: Show Quantity Done instead of Initial Demand 2017-09-29 14:15:32 +02:00
Deep Patel 98748a93c0 [FIX] res_config: Fix several layout issues on config views
- subscription settings are broken and show up at the bottom of any setting page: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrra01leUZ1Wnczbms/view?usp=drivesdk
- don't put setting item of the app you are configuring at the top of the list: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrdXEwUmFWTTlLd1E/view?usp=drivesdk
- hide empty sections when searching not in debug mode: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrVGFOa0FKVmtNTWs/view?usp=drivesdk
- when installing Invoicing, setting item should be Invoicing and not "Accounting": https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrWGQwY1ktaXlNSUk/view?usp=drivesdk
- app labels: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrreXlNTXZnbU13aFk/view?usp=drivesdk
- coupon programs links: duplicate in sales + no link at all in website: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraTV1YTNPdWU2VUE/view?usp=drivesdk
- delivery methods: links are duplicated in sales settings https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrczR5X1FOUllUZHM/view?usp=drivesdk
- add subtitles to all the carriers in sales settings: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrS1NXXzhwRTFQV2c/view?usp=drivesdk
- inner options should never be in bold:
	customer account: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrMnpualBta2x6dU0/view?usp=drivesdk
	phone validation: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraHJrYngtaGJ6T2s/view?usp=drivesdk
	signature & payment: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrWTJ3dVBuTzNONlU/view?usp=drivesdk
	bill control: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrRy16UkdTWWdrdDQ/view?usp=drivesdk
- make similar settings look the same through all the apps:
	taxcloud: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrraGlVWmNXRjJ5WEk/view?usp=drivesdk
	pricelist: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrQ2pwVmtEZXM1SWM/view?usp=drivesdk
	multi-currencies: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrTFNWTTJpcS1XbnM/view?usp=drivesdk
	shipping costs: https://drive.google.com/a/odoo.com/file/d/0B1uIL9E_zXrrM2hKdk5XRy1WTjg/view?usp=drivesdk
2017-09-29 14:12:03 +02:00
Cedric Snauwaert fe421df632 [FIX] l10n_de: fix coa that had no fixed assets 2017-09-29 13:54:00 +02:00
Axay Javiya 28c3ffaa96 [IMP] account: in invoice set due_date value to invoice_date if due_date is not set at time of invoice validation 2017-09-29 13:50:58 +02:00
qsm-odoo a2da1df78e [FIX] web, portal: checkbox rendering
This reverts commit b94939377a.
The commit was breaking most of the backend checkboxes trying to fix a
frontend one.

On top of the revert, this commit adds frontend-only style to fix the
frontend checkboxes.
2017-09-29 13:40:25 +02:00
Lucas Perais (lpe) 2fcb780a01 [FIX] account: enforce simple res.partner form on send receipt
Before this commit, when Sending the receipt by email (payments) the full partner form was displayed in case the partner didn't have an email set.

Now, just like invoices, the simpler version is displayed
2017-09-29 13:30:17 +02:00
Nicolas Lempereur 56800ad667 [FIX] web_editor: HTML/CSS Editor save feedback
The save on the frontend worked, but there was no feedback that it
worked if the identifier of the file currently edited broke a jQuery
attribute selector value (eg. /test.less breaks it).
2017-09-29 13:28:36 +02:00
Nicolas Lempereur 599f726df5 [FIX] mass_mailing: never ending resize
In odoo@2972976 a mouseup that unbound resizing in mass mailing was
missing so once resizing there was no way to stop resizing.
2017-09-29 13:28:35 +02:00
Jérome Maes 2eb9595f96 [FIX] sale_timesheet: better compute the to invoice and invoiced amount
We now compute 'to invoice' and 'invoiced' amount directly
from SO line fields and not the revenue.
2017-09-29 13:05:35 +02:00
Jérome Maes f0cfc2dd65 [FIX] sale_timesheet: timesheet on milestone should be registered as fixed price 2017-09-29 13:04:04 +02:00
Adrian Torres 94f4b31070 [FIX] sale_timesheet: proper time formatting
This revision changes the current time formatting in the overview
of the project app from 00h00 to something more standard -> 00:00
2017-09-29 13:03:50 +02:00
Jérome Maes 013fbb109a [FIX] crm: avoid crash when creating activity
When creating an acitivity generating a calendar event, if
the model is not crm.lead (ex: sale.order), the default_get
will crash since no value for res_model_id is given.
2017-09-29 13:03:27 +02:00
Yannick Tivisse 53786e560d [FIX] web: Propose to update translation only for fields that have a value
Purpose
=======

If you create a product template with only the name set, the system proposes to update translations for all the translatable fields, even if no value is set for a field.
2017-09-29 13:01:10 +02:00
qsm-odoo 49d0c7c021 [FIX] web: kanban dropdown-menus were not working in mobile mode
In mobile mode, dropdown-menus are working with a dropdown backdrop for
mobile compatibility. As the z-index of kanban dropdown-menus were now
forced to 1 for no good reason, those appeared under the backdrop and
were thus not working.
2017-09-29 12:26:50 +02:00
Kinjal Mehta 0ff00a5d76 [FIX] account: make "test" reconciliation button more visible 2017-09-29 12:26:50 +02:00
qsm-odoo 7dbf6d2154 [FIX] web: allow creating new kanban columns with progressbar
Before this fix, trying to create a column in a kanban view where there
were progressbars was opening a traceback. This was because the newly
create column is made from data which are guessed in the client (no RPC
is done), so this guess had to be adapted to progressbars.
2017-09-29 12:26:50 +02:00
amoyaux f92601704e [REF] stock: scrap display product on stock move
Previously a user was only able to scrap reserved product
(products that have a stock move line associated on the picking).
With this commit the user can scrap any product that has a move
on the picking.
2017-09-29 12:18:56 +02:00
amoyaux b812b5b625 [FIX] stock: scrap move update scrap object
Previously editing a done move line only update
the quants to the right location. However the stock.scrap
related object has not its qty updated.

This commit modify the write of stock move line in order
to also modify the stock scrap object to the correct quantity
2017-09-29 12:18:49 +02:00
amoyaux e088acbc0f [FIX] stock: scrap creates a back order.
When the user scrap a product in a picking.
The moves to proccess are moved to a back order and
the current picking only contains the scrap move.

It happens because scrap use action done on the scrap
move and action done process the given move and put the
other in a back order.

This commit add a condition on back order creation in
order to not do it if it comes from a scap.
2017-09-29 12:18:42 +02:00
amoyaux d13a0e1a5c [FIX] stock: wrong uom on tracability report.
The tracability report was using the quantity done (with the
unit of measure from he move line) and the uom of the product
(quant uom)

This commit changes the quantity done in order to keep the same
uom in the report. (uom of quants)
2017-09-29 12:18:19 +02:00
Deep Patel 811f7ca388 [FIX] res_config: Don't lose left panel when clicking on links or actions
1/ Lint
2/ Follow new .js guidelines (mainly re-sequence function alphabetically)
3/ Introduce BaseSetting.SearchHeader template for search header instead of replicating html code
4/ Add some comments in code
5/ When we close a modal or come back using breadcrumb, left panel is lost and all the settings are displayed. This commit fix the issue
6/ Remove the fact that the current app is in top of the app list
7/ Improve search
2017-09-29 11:46:31 +02:00
Cedric Snauwaert 93a1a0e2fd [FIX] account: reconciliation: fix open/close bank stmt button at end of reconciliation
Those where broken due to the rainbow man! Bad rainbow man!
2017-09-29 11:37:15 +02:00
Pierre Masereel 915b74e181 [FIX] mrp: do not show completed move lines in produce wizard 2017-09-29 11:30:56 +02:00
Lucas Perais (lpe) f106e59b15 [FIX] point_of_sale: fixing pricelist display and install
1. At POS install, search a (mandatory) pricelist only with the user's company's currency, otherwise it crashes at install time
	YourCompany is in USD
	You can have a second pricelist in EUR
	That later one will be selected by the search, hence the crash

2. Pricelist config menu in pos.config should only be visible by users in the relevant group

closes #19792
2017-09-29 11:24:32 +02:00
Prakash Prajapati 48a8d68194 [FIX] account: email template name change 2017-09-29 11:03:44 +02:00
Suraj Shukla cd60bd876a [FIX] product: add activity mixin on product
Product templates already use activities. However due to view inheritance
user can (try to) schedule activities on products. Those are not correctly
computed and displayed.

This commit somehow fixes that. It adds activity mixin on product itself
so that products have their own activities.

Due to inheritance mechanism activities on templates and product are
separated. This is a technical limitation and let us consider that as
a wow effect. Do you want a rainbowman ?
2017-09-29 10:59:59 +02:00
Thibault Delavallée ac723d2b05 [FIX] mail: fix display of done activities
Purpose: activity title / activity note / feedback title / activity
feedback should be better displayed.
2017-09-29 10:59:59 +02:00