Commit Graph
112972 Commits
Author SHA1 Message Date
Suraj Shukla 536bb2f7d9 [FIX] base: bootstrap css load issue fixed for asset mode
When you was in debug=assets and that a less file was malformed, the
error was not displayed correctly.

Now we load a minimal layout (bootstrap style)

This commit closes #19799
2017-09-30 12:21:27 +02:00
Jeremy Kersten 7f56039ddb [FIX] website_sale: resync website_sale.sass and website_sale.css 2017-09-30 12:21:27 +02:00
Jeremy Kersten fa511a4ee2 [FIX] website_sale(*): better management of warning when stock no more available + ...
From now update_json route with display=1 return the cart_qty and not False.
It is usefull withtout extra cost for other modules like wishlist or ... that
previously render all the template just to know the new qty.

Now you cannot arrive on payment page withtout product in your cart and get a
blank page, you are now redirected to the /shop/cart page

When the order are altered due to a change of stock availibilities, we now log
it into the order_line itself or the saloe_order if a line has been deleted.
That permit to display the warning later when the user come back to one of the
page that display the cart resume.  (/shop/cart or /shop/payment at this moment).

Remove useless empty file

Make xpath correctly using wrap feature and don't re-copy all contents

Replace old base.get_context with web_editor.context
2017-09-30 12:21:27 +02:00
Jeremy Kersten 29dec43ce8 [IMP] website_sale: replace signup by 'Sign In' in checkout
+ add link in confirmation page to propose the signup in b2c
2017-09-30 12:21:27 +02:00
rde 4edf03b5d9 [REM] website: remove unused method get_page_key
call to this method got removed on #f015746549e1eb380bfbda8c8f47d1f1e5d0cfbc
2017-09-30 12:06:04 +02:00
qdp-odoo 160f065251 [FIX] account: wrong xml-reference in report.
Module account does not depend on sale module
2017-09-30 11:33:40 +02:00
Kishan Gajjar 2a9605414b [FIX] web_editor: open customize menus to the left/right
Open customize options menus to the left if there is not enough space on
the right.
2017-09-30 11:17:22 +02:00
Kishan Gajjar 1a18eb64f4 [FIX] portal: duplicating links in footer
This solves a bug that should be solved differently when possible. When
automatic footer option is enabled, <ul/> become non editable because of
<xpath/>. So adding a link does not duplicate the <li/> elements but the
<a/> elements.
2017-09-30 11:17:22 +02:00
Kishan Gajjar 19dc6e97ba [FIX] web_editor: link dialog color buttons style was broken in some themes 2017-09-30 11:17:22 +02:00
Kishan Gajjar 5c6379303a [FIX] website: adding a link on a "Features"'s icon broke the layout 2017-09-30 11:17:22 +02:00
Kishan Gajjar 90dbe3c6be [FIX] website: add white background to placeholder image 2017-09-30 11:17:22 +02:00
Axay Javiya 3c065a4dbd [IMP] stock: show product name with internal reference and the info about the specific variant in product valuation report list view 2017-09-30 10:52:00 +02:00
Pierre Masereel 8bd0b080c4 [FIX] mrp_repair: allow any location in mrp repair
We should be able to choose any location for an MRP repair, you should
be able to repair a product in production if a finished product has been
consumed and must be repaired.

We must be able to choose a location even if we are not in multi
location.
2017-09-30 10:42:01 +02:00
Josse Colpaert ef86e6a816 [IMP] mrp: only show reserved when no show operations on picking type
Because the stock.move.line view (when Show Operations is checked on the
picking type) does not take into account the show reserved setting on
the picking type, it is better not to show the checkbox when show
operations is checked. We add an onchange to always check the "show
reserved" settings when "show operaions" is checked.
2017-09-30 10:38:17 +02:00
Vandan Shah 2cf234df6d [FIX] stock, mrp: don't allow to unlock when state 'cancel'
When a picking or a manufacturing order is in state cancel, we shouldn't
be able to modify it as we didn't move anything and it won't have any
impact on stock
2017-09-30 10:32:32 +02:00
amoyaux 74493be97f [FIX] sale_stock: action cancel not multi 2017-09-30 09:06:21 +02:00
Hetashree Chauhan 3ee5a6af73 [FIX] sale_stock: sale order picking form view
If there is only a single picking in the sales order,
it will open formview, else it will open tree view for all pickings
2017-09-30 09:06:08 +02:00
dbh-odoo 08e92204b6 [IMP] web_tour,point_of_sale: ser rainbowMan option on tour for display rainbow effect at the end of tour (#19615) 2017-09-30 06:54:57 +00:00
Nirali Sapra 31a9311748 [IMP]sale : remove update button 2017-09-29 21:54:36 +02:00
Jérome Maes f24223b071 [FIX] sale_timesheet: remove useless total value in overview 2017-09-29 21:54:12 +02:00
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