- Mar 12, 2020
-
-
Aurélien Warnon authored
This commit simply renames a template file to better reflect its purpose and also align with its JS widget file naming. It is a preparation commit for pending changes. Task 2045571 PR #41972
-
- Mar 11, 2020
-
-
Adrian Torres authored
Before this commit: - Install some random module that can be uninstalled (so not base) - Open the uninstall wizard for said module in two different tabs / windows / whatever - In one tab, confirm the module uninstall and wait for it to be done - As soon as the other tab is done with the uninstall, go to the second one with the uninstall wizard still open, and proceed with the second uninstall - Boom, the registry crashes and completely fucks up the DB because there's no check at all that prevents the uninstall of already uninstalled modules. After this commit: - `ir.module.module.button_uninstall` will check if all the modules being uninstalled are in the installed state and if not a UserError will be raised, preventing a second uninstall of the module which could potentially break the DB Do note that this fix is LOCAL, the problem is however more or less global, wherever there's user-actionable buttons that should only be pressed once there's a potential for bugs / breakage if a similar fix is not implemented locally. Perhaps a more global fix should be implemented eventually, but it's generally less annoying for business cases since those probably won't break the registry, see task 1859014. opw-2213679 opw-2212594 opw-2206446 closes odoo/odoo#47450 X-original-commit: 8c1bb22e Signed-off-by:
Adrian Torres (adt) <adt@odoo.com>
-
Andrea Grazioso (agr-odoo) authored
With l10n_mx installed: - Check in the settings that cash basis option is activated, and enabled on a Purchase Tax (example : IVA(16%) COMPRAS) - Create a vendor bill with this tax, validate it and register payment. - Create a credit note to this invoice, validate and register payment. - Cancel the credit note Error will occur, a record is already deleted. This occur because the canceling action recursively find every related move to delete, but in the process an account.full.reconcile is going to be unlinked twice: a check on reverse the exchange rate entry will trigger the error because the record is already deleted opw-2199093 closes odoo/odoo#47432 X-original-commit: a230690d Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
alt-odoo authored
A user with no Purchase rights and only Inventory User rights should be able to cancel an SO and access requisition_line_ids field. closes odoo/odoo#47441 X-original-commit: 9a6af5ea576d7eb451fb3c4fa88880eb9edf78af Signed-off-by:
Alex Tuyls <alt-odoo@users.noreply.github.com>
-
Lucas Lefèvre authored
Images of the lunch dashboard are not cached by the browser. closes odoo/odoo#47427 X-original-commit: fec2e2a4 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Daniel Blanco authored
closes odoo/odoo#47420 X-original-commit: 5cc738c9 Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
William Henrotin authored
The hover effect on popover is the following: the popup is opened when passing the mouse cursor on the icon and closed once it leave the icon. The issue is if the popup has a button inside, clicking the button freeze the popup. It cannot be closed unless the entire page is refreshed Task : 2199078 closes odoo/odoo#47408 X-original-commit: 25947264929a602256bd7febafa074ef7dabf7bd Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
jbm-odoo authored
Task ID 1251 closes odoo/odoo#45764 Related: odoo/enterprise#8569 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
jbm-odoo authored
Blue by default taskID: 2196770
-
- Mar 10, 2020
-
-
Xavier Morel authored
The `type` field was renamed `move_type` in d675dbaa but a forward-port re-added a use of the old `type` name, which breaks if an account.move is unlinked while l10n_latam_invoice_document is unlinked (and there are related moves to update). Instead of renaming the field, use the proper utility method for the category (purchase) provided by account.move. closes odoo/odoo#47301 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
- Mar 11, 2020
-
-
Sébastien Theys authored
Commit [1] does not work as it is supposed to, because there has been a confusion between the "notification request" and the "chat with OdooBot". `_showOdoobotTimeout` is for the chat, and it is unrelated to the notification request. We don't want to initiate multiple chats with OdooBot so that has to be reverted. As for the original goal of the PR about the notification request, it wasn't met either because it is the browser controlling it: - on Firefox there simply isn't a "close" button, and closing it by any other means (escape key) is considered as a denied. - on Chrome, when closing it for the first time, it will appear again automatically after the next page reload, so no additional code is required. However, if it is closed too many times (around 3) it will become automatically denied too, at the browser level. The only thing to do at that point is to better notify the user that it was blocked, without being intrusive, which is the focus of task-2188584. [1] b7254eca opw-2186299 closes odoo/odoo#47395 X-original-commit: 50155e80 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Swapnesh Shah authored
Before this commit, Payment URL was not encoded correctly which can compute Payment refernece Wrongly on website. Eg, Enter Description which contains Special Characters Go to Payment Page using Computed URL. There will be wrong Payment Reference on Payment page. With this commit, We encode Payment reference before generating Payment URL. closes odoo/odoo#47387 X-original-commit: 6ebcc43d Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Xavier Morel authored
Before this the `--unaccent` flag does double duty to specify whether to create new databases with the extension *and* to try to use the corresponding function. The latter is further gated on the function existing at all in the database. Given postgresql does not have unaccent installed by default it seems only the latter is really useful and we can ignore the flag to decide whether to enable unaccent features, if the extension is installed consider that it should be enabled and move on. Merge this in master rather than previous versions as it can change things like index access / use. closes odoo/odoo#47377 Signed-off-by:
Xavier Morel (xmo) <xmo@odoo.com>
-
jvm-odoo authored
Fine tuning of 1e411e3a6d - It moves the attachment in the message when we mark an activity as done. - It adds a test OPW-2196668 closes odoo/odoo#47349 X-original-commit: 2033066426a6af6eed5f80f1bcde6e650e998f0d Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
Nicolas Martinelli authored
- Set 'Product Unit of Measure' to 5 - Set the UoM rounding to 0.001 - Create an excluded tax of 6 % - Create a product costing 7.0 - Open the POS, add the product with a quantity of 0.535 The tax is 0.22 instead of 0.23. The root cause of the issue is the in JS: ``` round_pr(0.535, Math.pow(10,-5)) * 7 = 3.744999999999999 round_pr(0.535, 0.00001) * 7 = 3.745 ``` The numerical error impacts the tax computation later on. As a workaround, we round by the maximum between the UoM rounding and the 'Product Unit of Measure', which is what will be done in the backend anyway. opw-2205092 closes odoo/odoo#47372 X-original-commit: 125cdf96 Signed-off-by:
Nicolas Martinelli (nim) <nim@odoo.com>
-
- Mar 10, 2020
-
-
Romain Estievenart authored
Commit ca4eaf48 introduced the data-mobile attribute, used to specify options to pass when executing an action, only in mobile (like using a fullscreen modal). However, we forgot to add the 'isMobile' check, so the option was passed in desktop as well. This commit fixes the issue and adds some tests. Task ID: 2155601 closes odoo/odoo#47333 X-original-commit: 6cb68a53 Signed-off-by:
res-odoo <res-odoo@users.noreply.github.com>
-
- Mar 11, 2020
-
-
Josse Colpaert authored
If the bank account number is a postal one, search differently to see if the account already exists. As for a postal account, the same number can be used by multiple partners, changed the account to include the name of the partner, but for this we need to alter the way the account is searched/created. closes odoo/odoo#47365 X-original-commit: b95b9d6d Signed-off-by:
Josse Colpaert <jco@openerp.com>
-
Josse Colpaert authored
When reconciling and the bank account is not found, the system wlll automatically create one. Here we refactor the method checking/creating this bank account in order to be able to inherit this functionality. In the meantime, we added the company_id for the newly created bank account in order to avoid problems when you are operating on multiple companies at the same time. X-original-commit: a63bd575
-
Odoo's Mergebot authored
This PR adapts some existing steps or add new ones to execute the same tour on mobile. This tour has many steps and give a good idea to know if new tasks broke mobile or not. The goal is that even if the design isn't perfect, users aren't blocked and are able to perform their usual tasks. The main flow tour is still running on desktop but we also run it a second time on mobile. It's only available in enterprise, otherwise the test will be skipped. '375x667' correspond to the Bootstrap XS size. This value is already used for the mobile tests suite. Also see https://github.com/odoo/enterprise/pull/9011 Task ID: 2149402 closes odoo/odoo#46880 Related: odoo/enterprise#9011 Signed-off-by:
Adrien Dieudonné (adr) <adr@odoo.com>
-
Krupa Patel authored
task-2196789 closes odoo/odoo#46298 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Romeo Fragomeli authored
This commit adapts some existing steps or add new ones to execute the same tour on mobile. This tour has many steps and give a good idea to know if new tasks broke mobile or not. The goal is that even if the design isn't perfect, users aren't blocked and are able to perform their usual tasks. Task ID: 2149402
-
Romeo Fragomeli authored
This commit moves some step utils in a dedicated file and add new ones. These steps will be very useful for the Main Flow Tour to avoid duplicated code. To do this, we also had to transform it into functions to allow utils to call each other. Existing one are converted for standardization purpose. Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util. This is a very simple step only used twice.
-
Romeo Fragomeli authored
In this commit, we are still running the main flow tour on desktop but we also run it a second time on mobile. It's only available in enterprise, otherwise the test will be skipped. '375x667' correspond to the Bootstrap XS size. This value is already used for the mobile tests suite. Task ID: 2149402
-
Romeo Fragomeli authored
We are not able to precise in which case a step should be executed. We already have 'edition' and now we introduce 'mobile'. undefined: Desktop + Mobile* true: Mobile* only false: Desktop only *: Responsive (<= SM), see isMobile
-
Romeo Fragomeli authored
Note that tours shouldn't be language dependent. By using XMLID's we are able to find a menu even if the tour is running in another language. The tip has been moved slightly but it's not a big deal, others selectors menu already used XMLID's.
-
Romeo Fragomeli authored
-
Romeo Fragomeli authored
-
Romeo Fragomeli authored
Before this commit, the tip for a many2X field was consumed with a input event. But on mobile we doesn't have the same behaviour; a kanban modal is opened when we click on the many2X field input instead of writing in it (auto-complete) like on desktop. After this commit, the tip is consumed with a click event for many2X on mobile.
-
Romeo Fragomeli authored
Since commit: odoo/enterprise@e662ef36296afb2787eb694a33b4c6616a5e1326 a 'div' wrapper was added around the notebook header. The tip was not visible due to it's location in the wrapper with 'overflow: hidden'. After this commit, the tip is appended to the ancestor of the wrapper and so it's visible again.
-
Romeo Fragomeli authored
Before this commit, when you tried to run a tour by clicking on "Start Tour" in the debug menu, nothing happened and a warning message appeared in console: "debug_manager.js:53 No handler for start_tour". Now it will work on mobile too (debug mode only). We had to do this to be able to run the main flow tour on mobile. Note that another commit (in enterprise) will automatically consume all tours to avoid to display it for demonstration purposes. Task ID: 2149402
-
fja-odoo authored
Previously the widget was not refreshed everytime it was opened. Now that it is the case and since the color picker rerenders every time we select a color: It is no longer required to select/unselect the colors. It is no longer required to add custom colors to existing colors. Part of: https://github.com/odoo/odoo/pull/45872 task-2212288 closes odoo/odoo#47355 X-original-commit: 481fe703e9400fb64e96291914f76d4dca883e29 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
fja-odoo authored
When a default color matches a theme color it will now select the theme color class instead of a css attribute when clicked. Part of: https://github.com/odoo/odoo/pull/45872 task-2212288 X-original-commit: d7b3538a814f0e53cd3c5816f8296ad5e4c5f41a
-
- Mar 04, 2020
-
-
Nisha patel authored
Purpose of this task is some people would like to make accrual in days but currently accruals work on different periods(week,month,year). So in this commit, we added "days" as "interval unit" for leave allocation with type accrual. closes odoo/odoo#46751 Taskid: 2168023 Closes: #46751 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
Hemali Bhimani authored
Currently on a Sales Order Portal view, the field 'date' under the delivery order shows the creation date of deliveries linked to the SO, After this commit it should display the 'effective date' (or'scheduled date' if not yet delivered) of deliveries linked to the SO task:2180525 closes odoo/odoo#46633 Closes: #46633 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Mar 06, 2020
-
-
Joseph Caburnay authored
Previous implementation of patch (web.utils) only allows patching methods. This commit allows patching getters as well. closes odoo/odoo#47047 Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
- Mar 10, 2020
-
-
Benjamin Vray authored
Avoid traceback when click on edit and nothing is editable on the page. task-2199214 closes odoo/odoo#47328 X-original-commit: fd92a78b Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benjamin Vray authored
Allow non-alphabetic unit (like percentage) as data-unit value. task-2194309 closes odoo/odoo#47325 X-original-commit: 1f3dd221134b7b5e5b0eac0ab2ffe447771998b9 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Damien Bouvy authored
Follow-up of d0c852f5 The parser of `many2one_reference` was not introduced when the new field type was created and then later when the formatter was added, which leads to errors when the web client is trying to set the value of such fields. Since the value of this field is an ID, it is parsed as an integer. closes odoo/odoo#47330 X-original-commit: db1e16bc Signed-off-by:
Damien Bouvy (dbo) <dbo@odoo.com>
-
- Mar 05, 2020
-
-
Arnold Moyaux authored
Allow to use custom product decscription on requisition line. closes odoo/odoo#34174 Task: 1970476 Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
-
Arnold Moyaux authored
_prepapre_tender_values in only call from purchase_requisition_stock. It's not needed to have 2 functions, everything should be in purchase_requisition_stock.
-