Commit Graph
112989 Commits
Author SHA1 Message Date
fwi-odoo d9ffd5204d [FIX] web: correctly apply onchange on boolean field
When an onchange sets a boolean field to 'true', if this boolean was set to 'false'
previously, the old value was used instead of 'false'.
2017-09-30 15:11:39 +02:00
qdp-odoo 236742cb0e [FIX] sale, account: fix tax group style in quotation/invoice reports 2017-09-30 15:02:17 +02:00
qsm-odoo a3f899c395 [FIX] website(_twitter): properly stop snippet animations
The `stop` method of snippet animations was renamed to `destroy` (as
animations are now extensions of standard `Widget` class).
2017-09-30 14:33:05 +02:00
qdp-odoo c6d2e42a0f [FIX] account: writeoff were not linked to the payment they come from.
Registering a payment on an invoice with a writeoff, was creating the correct accounting entries although when going back on the payment form and clicking on 'journal items', the writeoff line was missing.
2017-09-30 14:31:34 +02:00
Khoi Nguyen 1eeac9f196 [FIX] mrp: Aesthetic change in block view
Apply text-uppercase to block button.
2017-09-30 14:25:43 +02:00
Khoi Nguyen f220ca4c10 [FIX] mrp: Change Work Orders text to make the dependence on quality explicit 2017-09-30 14:25:43 +02:00
Khoi Nguyen bdeb775219 [FIX] web: focus issues after onchange in x2many with buttons
https://github.com/odoo/odoo/commit/36b4d78a2678806b25aaa5650b64496f9da9d205
fixes most post-onchange focus issues for x2many fields, but does not
account for "button columns" properly. More precisely, the current
widget is computed via a position index taking buttons into account in
an array that ignores them. This caused the index to be out of bounds,
resulting in a traceback. This commit fixes this issue.
2017-09-30 14:25:43 +02:00
Nhomar Hernandez aa12ba2b89 [FIX] stock: Procurement group form view needs a little Icon to comply with
standard usability views.
2017-09-30 14:13:02 +02:00
Pierre Masereel d9a7e40f7e [FIX] stock: only show original document, and not all rules applied 2017-09-30 13:38:34 +02:00
fwi-odoo 0f98d59064 [FIX] web: calendar avoid double event creation
Before this commit, pressing tab then enter was generating a traceback because
the event creation and modal deletion was done twice.
This commit adds a protection to be sure that we are doing only one event
creation.
2017-09-30 13:21:02 +02:00
David Vidal 0e562c8a7d [FIX] website_sale: Avoid map tax for every company
When a product has multiple company taxes and b2c prices is enabled, price is
not computed properly and adds to the base price every company tax present.
This patch filters the company set on the company so taxes are computed just
for that company.

This commit closes #18840

Depend of the previous commit which add right to public user. #18881
2017-09-30 12:21:27 +02:00
David Vidal 42c8da4edc [FIX] Add public user group tax read permissions
- Related to https://github.com/odoo/odoo/pull/18840
- Adds public user tax read permission so methods can be called.

this commit closes #18881
2017-09-30 12:21:27 +02:00
Jeremy Kersten 830fed2601 [FIX] website_sale_wishlist: fix to make wishlist available for public user
Fix/imp about the #19777

Replace cron of garbage_collector by a call from autovaccum. Don't try to find
which session is expired or not to avoid to check each one by one, but use a
stupid heuristic to delete all old session older than 5 weeks by default.
(overridable in autovaccum: model.power_on(**dict(wishlist_week=10)) e.g.)

Use 'display: none' instead of class hidden, to avoid flickering at load and
let jquery work with .show / .hide without removeClass('hidden').
Without it, the animation of the first product that you add in your wishlist
will be wrong because Wishlist menu is not visible while you don't refresh.

Remove all old test that check if we was the public user or not and that make
the PR not working ;)

Courtesy of @yajo for dev, and @rdeodoo for quick review/testing
2017-09-30 12:21:27 +02:00
Jairo Llopis 88b75f150d [IMP] website_sale_wishlist: Allow public users to wishlist
Current behavior before this patch:

- Only authenticated users were able to set items as wishlisted.
- A product template is displayed as wishlisted if the first variant is so.

Desired behavior after this patch:

- All users are able to wishlist items.
- When a user logs in, his dangling wishlists join him.
- A product template is displayed as wishlisted when any of its variants is so.

This commit closes #19777
2017-09-30 12:21:27 +02:00
rde 4bd8e3e2ed [IMP] website: Script injected in DOM: window.onerror empty params
Before this commit, error thrown by scripts injected in DOM won't return a
clean error on window.onerror.
It would open the crash_manager's show_error's dialog that wouldn't display
any informations except "Script Error." and "Traceback:".
This is because of browser's security reason: it will just give you a
'Script error.' as message and nothing else for security issue.

Now, this kind of error will show a clearer message informing that it is
probably originating from a Javascript file served from a different origin.
There is now also the possibility for developers to handle/override the
behavior when this kind of error is catch to prevent the dialog to open for
example.

Might be of use:
https://blog.sentry.io/2016/05/17/what-is-script-error.html
https://stackoverflow.com/a/7778424
https://danlimerick.wordpress.com/2014/01/18/how-to-catch-javascript-errors-with-window-onerror-even-on-chrome-and-firefox/ (Search for Script Error)
2017-09-30 12:21:27 +02:00
rde c837eaca9f [FIX] website: edit menu not showing url & mailto prefix with '/'
Before this commit:
1. you could not edit a menu URL because the input was hidden.
   This was due to radio options being switched (new page is now selected choice)
   when you create a menu.
   But when you edit, there is no choice and the input should be shown.
2. if you set a menu url to an email address, the display link would be prefixed
   by a / and so it would open mysite.com/mailto:XXX instead of just the mailto

Now:
1. Input is now hidden only when you add a new menu, not when editing a menu.
2. mailto link now works as expected: it will open your desktop mail software
2017-09-30 12:21:27 +02:00
Prakash Prajapati 0b6c9c60d4 [FIX] website: remove left & right margins around todo buttons 2017-09-30 12:21:27 +02:00
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