- Sep 30, 2017
-
-
Aaron Bohy authored
Kanban records with 'global click' feature activated should open the record in a form view when the corresponding card is clicked. Before this rev., it wasn't working if the user clicked on a tag of the kanban record, because of an unused click handler defined on the Many2ManyTags widget (preventing the global click feature from actually performing the global click). This rev. removes that handler in the KanbanFieldMany2ManyTags.
-
Aaron Bohy authored
This reverts commit b6ef149b as it seems that we don't want this feature ultimately (was confusing for users trying to open the record, but it filtered instead). Note that opening the record by clicking on a tag still doesn't work, but this is fixed by the next commit.
-
Aaron Bohy authored
Problem occured in the MRP Production wizard (with a consumed product tracked by serial number). The opened record is a new record, and its one2many has 2 default rows that are prefilled. If the user edited one of the quantities in those rows, and set an invalid value instead (e.g. a letter), the row was removed without notice when it was focused out. This was because the model wasn't aware that a change has been done on the record, and as the record was flagged as new, it was simply abandonned.
-
David Monjoie authored
The one2many default get code used to meddle with basic_model's res_ids manually, which ended up desynchronizing the data and res_ids fields of the list representation of the one2many values. This commit solves the issue by using the proper mechanisms of the basic_model, that is creating a proper datapoint for those ids. Steps to reproduce the original issue: - Install sale_mamangement, mrp and purchase - Create a product - In the Inventory tab, in Routes, uncheck Buy - Check and then uncheck back any other route than Buy - Get a traceback because we are looking for a record with a given res_id in the list data but since they are desynchronized, data is empty at that point even though res_ids is not.
-
Pierre Masereel authored
-
Fabien Pinckaers authored
-
fwi-odoo authored
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'.
-
Quentin De Paoli authored
-
qsm-odoo authored
The `stop` method of snippet animations was renamed to `destroy` (as animations are now extensions of standard `Widget` class).
-
Quentin De Paoli authored
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.
-
Khoi Nguyen authored
Apply text-uppercase to block button.
-
Khoi Nguyen authored
-
Khoi Nguyen authored
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.
-
Nhomar Hernandez authored
standard usability views.
-
Pierre Masereel authored
-
fwi-odoo authored
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.
-
David Vidal authored
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
-
David Vidal authored
- Related to https://github.com/odoo/odoo/pull/18840 - Adds public user tax read permission so methods can be called. this commit closes #18881
-
Jeremy Kersten authored
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
-
Jairo Llopis authored
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
-
rde authored
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)
-
rde authored
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
-
Prakash Prajapati authored
-
Suraj Shukla authored
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
-
Jeremy Kersten authored
-
Jeremy Kersten authored
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
-
Jeremy Kersten authored
+ add link in confirmation page to propose the signup in b2c
-
Quentin De Paoli authored
Module account does not depend on sale module
-
Kishan Gajjar authored
Open customize options menus to the left if there is not enough space on the right.
-
Kishan Gajjar authored
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.
-
Kishan Gajjar authored
-
Kishan Gajjar authored
-
Kishan Gajjar authored
-
Axay Javiya authored
[IMP] stock: show product name with internal reference and the info about the specific variant in product valuation report list view
-
Pierre Masereel authored
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.
-
Josse Colpaert authored
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.
-
Vandan Shah authored
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
-
amoyaux authored
-
Hetashree Chauhan authored
If there is only a single picking in the sales order, it will open formview, else it will open tree view for all pickings
-