Commit Graph
112952 Commits
Author SHA1 Message Date
Jérome Maes 5ff52bba32 [FIX] sale_timesheet: force timesheet and not analytic line in overview 2017-09-29 21:53:30 +02:00
Jérome Maes 07c14ba8cc [FIX] sale: add name_get for sale order line
Since procurement is dead, selecting a SO line
on task to reinvoice it get the list of so line
description in dropdown.
Define a 'name_get' method is required. So avoid
performance issue, we only customize it (order name
and product name) with a context key, like we did
for Sales Order.
2017-09-29 21:53:20 +02:00
Simon Lejeune 45704b6218 [FIX] mrp: action_explode
We initially only ran action_explode on manufactured move, but it should
be for done for classic move to make it work in classic deliveries
(confirming a move for a kit should cancel the originl move and add new
moves for the kit's components).
2017-09-29 21:14:34 +02:00
Olivier Dony e58e0c268c [IMP] server: rename xmlrpc* related parameters
The 'xmlrpc'-based configuration parameters have been a misnomer since
the introduction of the generic HTTP service, years ago.

Hide these options from the server parameters, and replace them with
more appropriate 'http' ones:

 --xmlrpc-interface -> --http-interface
 --xmlrpc-port      -> --http-port
 --no-xmlrpc        -> --no-http

The config entries for these have been adapted as well.

The old parameter names are still silently supported in both
command-line arguments and config files. However they are
stored with the new names in the `tools.config` dict,
and when saving config files (with the -s option).

Also clarified and cleaned up the descriptions of the HTTP/WEB server
parameters.

And finally, added a short version `-p`, for the `--http-port` option.
Credits to @dreispt for this (via #19518)

Closes #19518
Closes #19778
2017-09-29 18:18:03 +02:00
Khoi Nguyen 85ed6a31a2 [REF] mrp: Enabling Work Orders installs quality_mrp
This commit applies the following changes to the MRP settings:

- Ticking 'Work Orders' installs quality_mrp;
- quality_mrp is removed if 'Work Orders' are disabled;
- The quality_mrp section has been removed;
2017-09-29 18:01:16 +02:00
Khoi Nguyen 33aa89ed05 [FIX] web: discarding a new record in a modal closes the modal
Discarding a new record triggers the 'history_back' action.  This makes
sense if the record was discarded from a normal form view, but not so
much when in a modal, where the expected behaviour is to close the
dialog.

This commit overrides the function in the action manager which handles
the switch to the previous view. It checks whether a dialog window is
open, in which case it simply closes it.
2017-09-29 18:01:16 +02:00
Nikunj Ladava c01c620681 [FIX] maintenance: can change stage of maintenance request from statusbar 2017-09-29 17:47:26 +02:00
Tejas Shahu f38d691be2 [IMP] stock_account : hide 'Inventory Valuation' stat button
When we create and edit a new product from a Many2one, we don't want to
see the stat button 'Invotory Valuation', so hide it in the view when
the record has no id.
2017-09-29 17:42:25 +02:00
Moises Lopez - https://www.vauxoo.com/ 55188da4f4 [REF] tools check_with_xsd: Supports generic stream
In order to be able to use it either with a file or an bystream from an attachment. Was PR #19697
2017-09-29 17:24:39 +02:00
Nicolas Lempereur b61f89077f [FIX] website_sale: 3 text typo reported by fgi 2017-09-29 17:12:09 +02:00
Nicolas Lempereur 31fdcb4931 [FIX] web: max one wiggle per readonly click
The wiggling effect of the edit button when clicking on the form
(hinting that to change the form you should edit it) could  happen
several times.

With 85d1e76 there was also a visual deffect on the Edit button when the
wiggle happened several times, because bounce are stacked but the CSS
class was removed after the first bounce was removed.
2017-09-29 17:12:09 +02:00
Cedric Snauwaert d2497a0e33 [FIX] account: reconciliation: change message displayed when widget is displayed without lines (after refresh for example) 2017-09-29 17:07:58 +02:00
Lucas Perais (lpe) b04048fc2a [FIX] account: more consistent domain on payment.journal_id 2017-09-29 17:07:27 +02:00
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