- Oct 21, 2021
-
-
Christophe Monniez authored
Mako is not used anymore for a long time. closes odoo/odoo#78131 Signed-off-by:
Christophe Monniez (moc) <moc@odoo.com>
-
Christophe Monniez authored
Part-of: odoo/odoo#78131
-
Christophe Monniez authored
With the release of Debian Bullseye the time has come for the balancing act by trying to update the requirements. The constraints are the following: * Stick as close as possible to python3-* Debian packages versions of the current Debian stable. * Same but for the Ubuntu LTS version. * When one of the above package is patched by Debian or Ubuntu maintainers, set the upstream version that includes the patch if any. Also, as support for python < 3.7 is dropped, some cleanup can be done. The `reportlab / pillow` combo is a special case: * Pillow has to be updated to 8.1.2 as this version includes the security patches that were added to Ubuntu package 7.0.0 (Focal). * Reportlab crashes with 8.1.2 with version prior to 3.5.54 [0]. The problem does not occur on Ubuntu Focal as both versions from the Ubuntu packaging are compatible. So the reportlab 3.5.59 is chosen as it's the Debian Bullseye version and to avoid multiple lines for a few minor versions. [0] https://hg.reportlab.com/hg-public/reportlab/rev/0cf382dab63b Part-of: odoo/odoo#78131
-
Aurélien (avd) authored
The active field of stock_valuation_layer is related to product_id.active. Adding auto_join = True avoids bloating search/read_group queries in expression.parse(). closes odoo/odoo#77821 X-original-commit: 2526c640 Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
Pierrot (prro) authored
The currency symbol was not present for the fields "Untaxed Amount" and "Total", in the online preview of an invoice. Now the preview will use the "formatted" value for the fields. opw-2666340 closes odoo/odoo#78744 Signed-off-by:
Florian Gilbert <FlorianGilbert@users.noreply.github.com>
-
Achraf (abz) authored
When a componentes is in a modal and uses the positioning hook (filter dropdown in the Search More modal for example), it will shifted from the toggler button. This is due to a `-webkit-transform: translate3d (0, 0, 0);` applied on the `modal-body` which influences the `position: fixed` attribute of `.o-popper-position` in the `dropdown-menu` "It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. " See: https://developer.mozilla.org/en-US/docs/Web/CSS/position the translate3d was applied with https://github.com/odoo/odoo/pull/20314 As the bug is no longer exists, we can remove this style. opw-2668638 closes odoo/odoo#78736 Signed-off-by:
Nicolas Lempereur (nle) <nle@odoo.com>
-
anhe-odoo authored
Expected Behavior The total amount and total taxes amount in invoice, purchase order and offer should be formated with the correct formating options (related to the client's location), and with the correct currency symbol, as it was the case in V14 Observed behaviour In V15, these amount are written as pure numerical values (eg : 1452.24 instead of $1.452,24). This is the case in every generated pdf, as well as in the user portal preview(s), but not in classical form view(s). Reproducibility This bug can be reproduced following these steps: - Create a new invoice - Validate it - Preview it in the user portal of download the printable .pdf This can also be done with a purchase order, following the same steps. Problem Rout Cause The problem comes from the fact we read the wrong fields, using account.tax_totals.amount_total and account.tax_totals[subtotals].amount instead of account.tax_totals.formatted_amount_total and account.tax_totals[subtotals].formatted_amount. opw-2666924 opw-2666553 opw-2665130 closes odoo/odoo#78372 Signed-off-by:
Quentin De Paoli (qdp) <qdp@openerp.com>
-
Nidhi Patel authored
Currently, projects that are 'on hold' stage are represented in grey in the kanban progress bar while the colored dot on their card is in blue. In this commit, we change the color of the 'on hold' stage into 'info' instead of 'muted'. After this projects that are 'on hold' are display blue in the kanban progress bar as well. Task-Id:2633273 closes odoo/odoo#76355 Signed-off-by:
LTU-Odoo <IT-Ideas@users.noreply.github.com>
-
Hardik Prajapati authored
purpose of this commit is to display the project name and task to the right of the div in the activity view. before this commit, the project name and task displays next to the many2many_tags div in the activity view. closes odoo/odoo#76681 Taskid: 2646204 Related: odoo/enterprise#20949 Signed-off-by:
LTU-Odoo <IT-Ideas@users.noreply.github.com>
-
- Oct 20, 2021
-
-
Alexandre Kühn authored
closes odoo/odoo#78686 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Leonardo Pavan Rocha authored
In task-2355704 changes were made to the pdf layout designer to allow more flexibility when setting company data. However, for the default values of both company_details and report_footer, the data wasn't being escaped, therefore offering security risks. Also, they didn't take into account the address_format when computing the default value. This PR implements Markup usage in the html fields and fixes _default_company_details to use the set address_format. closes odoo/odoo#78652 Signed-off-by:
Olivier Dony (odo) <odo@openerp.com>
-
Louis Wicket (wil) authored
Ensure that all models have their own explicit definition of identifying fields. Prior to this commit, if a model did not have identifying fields, the ones in mail.model were used implicitly because of the inheritance. closes odoo/odoo#78692 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Tom De Caluwé authored
When visiting a page with enable_editor set to true, the web editor will be automatically started. However, while the editor is loading, the end user can still click other buttons in the navbar. For example, some changes in the web editor require a save and reload of the current page being edited. After saving, the same page will be reloaded with enable_editor. This commit blocks any clicks while the editor is being loaded. task-2607755 closes odoo/odoo#77428 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benoit Socias authored
Before this commit selecting a class-based color (gray scale, o-color-1~5) was ignored when configuring a custom button colors. After this commit the color's class is applied. Additionally, upon switching between Custom and other types, the custom UI is now cleaned up. task-2653874 closes odoo/odoo#76936 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-
Benoit Socias authored
Before this commit if button text had styles, they would override the color set by customizing the button. After this commit button text styles are removed when applying custom button colors. task-2653874 Part-of: odoo/odoo#76936
-
svs-odoo authored
Sets the `inventory_quantity_set` as an editable field (not readonly) and creates its own compute to avoid to override it each time the `inventory_quantity` is modify and we set the `inventory_quantity_set` aside (before this commit, this field new value was always overrided by the `inventory_diff_quantity` compute). This is useful when we want to write on the quants from the Barcode App as we can write on `inventory_quantity` and `inventory_quantity_set` at the same time. task-2632818 closes odoo/odoo#76756 Related: odoo/enterprise#20985 Signed-off-by:
Rémy Voet <ryv-odoo@users.noreply.github.com>
-
Florian Damhaut authored
Currently, DDT use the product_uom_quantity of product for the ddt move which is inaccurate in case of no-backorder change in quantity The fix correctly check if the done quantity is other than 0 for the delivery and if it is, use it as the delivery quantity opw-2663174 closes odoo/odoo#78658 X-original-commit: 8678bf38 Signed-off-by:
Florian D <fdamhaut@users.noreply.github.com>
-
Aaron Bohy authored
This isn't a problem in production, because the ActionContainer is never destroyed, but it caused a small memory leak in the test environment. closes odoo/odoo#78621 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Aaron Bohy authored
Before this commit, the ui service listened to the "change" event on several MediaQueryList corresponding to specific window sizes. However, those event handlers were never removed. Whereas this isn't an issue in production (services are started once and live forever), this caused a memory leak in tests, where services are deployed on demand, test by test. There is no cleanup function for services (since they live forever by nature). In the test environment, we have a solution for handlers bound on window (i.e. window.addEventListener), by monkey patching the function (thanks to the browser object), and automatically removing all handlers bound during a test, at the end of that test. This commit fixes the memory leak by no longer using addEventListener on MediaQueryList (as this is a deprecated feature anyway [1]), and simply using window (or browser)'s addEventListener instead. This leak sometimes produced a timeout in the QUnit test suite [2]. [1] https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener [2] https://runbot.odoo.com/web#id=2374&action=573&model=runbot.build.error&view_type=form&cids=1&menu_id=405 Part-of: odoo/odoo#78621
-
Aaron Bohy authored
Before this commit, those tests sometimes failed because we didn't correctly wait for the load and reload promises. Part-of: odoo/odoo#78621
-
Aaron Bohy authored
This is a tricky one. The problematic tests involve the quick edit feature. Before this commit, those tests sometimes failed [1], because there was no guarantee that we waited enough in the test before doing assertions. [1] https://runbot.odoo.com/web#id=2012&action=573&model=runbot.build.error&view_type=form&cids=1&menu_id=405 Part-of: odoo/odoo#78621
-
Aaron Bohy authored
This commit *could* prevent a test from failing randomly. The important part in the diff is the switch from $.Deferred to native Promise. JQuery Deferred behave differently upon resolution (it is sync if the deferred is resolved directly, whereas it is not the case for native Promise). I couldn't find any other reason to explain why the test was sometimes failing. There is no reason to use Deferred anyway. The issue didn't occur after this commit in more than 600 builds. [1] https://runbot.odoo.com/web#id=2297&action=573&model=runbot.build.error&view_type=form&cids=1&menu_id=405 Part-of: odoo/odoo#78621
-
Aaron Bohy authored
Before this commit, the changed test sometimes failed on runbot (rarely though), because it might happen that the debounce released before the promise returned by the click helper resolved (e.g. if the server was overloaded, or was garbage collecting...). That promise waited for a setTimeout, and then for a nextAnimationFrame. In this scenario, there's no need to wait so long, as there is no rendering to wait for. Example of failing build: https://runbot.odoo.com/runbot/build/10360554 Part-of: odoo/odoo#78621
-
Aaron Bohy authored
Before this commit, it wasn't possible to patch some functions (e.g. setTimeout) on window, because of the way we call them. Indeed, we typically do `setTimeout(...)`, because this function doesn't need to be bound to the window object. Part-of: odoo/odoo#78621
-
Florian Charlier authored
In some cases when creating a new ticket, the default product type shown is a "Consumable". It should rather be handled as a "Service". In later versions, a detailed type is created, but the base product type should be set to service too. This commit uses the `product_id` `context` to set the default detailed type to "event". Task-2655226 closes odoo/odoo#78519 X-original-commit: 440daf2d Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Mitul Shah authored
While installing 'crm_iap_lead_website' module, 'website_crm' module is automatically installed(auto install based on website and crm), and it introduces m2m field 'lead_ids' on visitors, as well as 'visitor_ids' m2m on leads. The issue is, 'website_crm' is installed automatically in this case, but does not depend on 'crm_iap_lead_website', and one can therefore uninstall 'website_crm' without knowing it may impact 'crm_iap_lead_website' (the 'lead_ids' field is defined in 'website_crm' and it is used in 'crm_iap_lead_website', and so trying to access it from 'crm_iap_lead_website' in this scenario will introduce a traceback). Other point to note: as we have no visitor field available in 'crm_iap_lead_website' (many2many added in 'website_crm'), we cannot manually search for leads as we do not have the information (we could make a fallback on visitor.partner_id if set, but that would be much low-level management just for a corner case). Considering above points, to avoid the traceback, instead of directly accessing the 'lead_ids' field, we simply check that whether the field exists or not. If it does not exist, we simply consider that no leads are attached to the visitor and we create the reveal view. If the field is there, the flow remains the same. Task-2655439 closes odoo/odoo#78672 X-original-commit: b9c180dd Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
David (dafr) authored
When invoicing a product with multiple variants and with anglo_saxon_accounting, the COGS would be the wrong amount. The function _stock_account_get_anglo_saxon_price_unit() was selecting the first BOM among all variant BOMs. Using the variant_bom_ids when existing prevent this situation. OPW-2662863 closes odoo/odoo#78647 X-original-commit: c07d005a Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com> Signed-off-by:
DavidFesquet <DavidFesquet@users.noreply.github.com>
-
Bruno Boi authored
In the new web client architecture, the user context is added to server requests through the ORM service and is therefore not needed in the action context. Thus the commit 7354d168 has removed it from the action. Before the new webclient architecture, the user context was always prepended to the action context. So this commit reintroduces it for the legacy views and client actions through their proper adapters. closes odoo/odoo#78555 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Bruno Boi authored
Before this commit The current action is stored in the session storage with its evaluated context. This design is wrong because a context is by definition contextual which means it has to be evaluated at the last possible moment to ensure it reflects the most recent context. After this commit The current action is now stored in the session storage it its most original state. This is sufficient as in any case actions go through the doAction method which evaluates the context right before applying the action logic. Part-of: odoo/odoo#78555
-
std-odoo authored
Bug === If we open a view in readonly mode, click on a radio widget and if a constraint exists on this field, an error message is raised. (e.g. the enroll field in "website_slides_sale"). Technical ========= This is because in the "Basic controller", in the "_onFieldChanged", we force "force_save" if the view is in readonly mode. This is wanted for widgets that can change the value even in readonly mode (e.g. Priority), but clicking on a Radio widget switch the mode to edit, so this is not needed. To fix that, we call `setValue` after switching to the edit mode. So the `setValue` is skipped in `_onInputClick` if we are in readonly mode, and the `setValue` is done in `_quickEdit` instead. Task-2668763 closes odoo/odoo#78392 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Mitul Shah authored
Currently, The 'TestWebsiteCrm.test_catch_logged_partner_info_tour' is randomly failing on runbot. The tour is triggered on contactus page. Tour bug is occurring because editor may not be completely loaded. In that case some selectors are not accessible. This tour is linked with selectors. In this commit updates the selectors and add the extra triggers in order to be sure editor is fully loaded and the tour can resume. Task-2649723 closes odoo/odoo#78512 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Ivàn Todorovich authored
closes odoo/odoo#78663 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Raphael Collet authored
This is a followup on b6c688ca, which has introduced a new bug. Consider two groups A and B in a given category, where B implies A and also A.id > B.id. For the sake of simplicity, assume that A.id=2 and B.id=1. Following the commit above, the name of the group selection field will be 'sel_groups_1_2'. Consider a user in group B. Because B implies A, this means that the user now belongs to both A and B. A call to read() on that user returns field 'sel_groups_1_2' with value 2, which on the form view appears as the user belonging to A only. The error is in read(), which assumes that the group ids in the field name correspond to the implication order of the groups, which is no longer the case since b6c688ca. closes odoo/odoo#78660 X-original-commit: e73c406671a51e9c1c4872a9e85eebe5656ea38e Signed-off-by:
Raphael Collet (rco) <rco@openerp.com>
-
- Oct 19, 2021
-
-
Géry Debongnie authored
Release notes: https://github.com/odoo/owl/releases/tag/v1.4.7 closes odoo/odoo#78659 Fix: memory leak in some templates X-original-commit: b1cb7816 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com> Signed-off-by:
Géry Debongnie (ged) <ged@openerp.com>
-
Touati Djamel (otd) authored
Steps to reproduce the bug: - Go to purchase > Configuration > Vendor Pricelists - Filters > select the “Active” filter Problem: Currently, the filter does not include records that do not have a specified `”date_end”`, even though they are considered active. Opw-2659829 closes odoo/odoo#78635 X-original-commit: bb8bef5c Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com> Signed-off-by:
Djamel Touati <DjamelTouati@users.noreply.github.com>
-
Hubert Van de Walle (huvw) authored
Steps to follow - Enable group_show_line_subtotals_tax_included - Create a repair order and add a tax to a line -> The subtotal doesn't contain the tax amount opw-2513287 closes odoo/odoo#78624 X-original-commit: 133888a1 Signed-off-by:
Hubert Van De Walle <hubvd@users.noreply.github.com> Signed-off-by:
William Henrotin <Whenrow@users.noreply.github.com>
-
Florian Damhaut authored
Description of the issue/feature this PR addresses: When using analytical account and invoicing a fixed price sales order item, which is linked to a project task, where timesheet has been recorded, the invoice gets double counted into the project revenues - both as Invoiced and as Other revenues on the project overview profitability. Current behavior before PR: The invoice gets double counted into the project revenues - both as Invoiced and as Other revenues on the project overview profitability. Desired behavior after PR is merged: The invoice gets counted only in the project revenues as invoiced/to invoice on the project overview profitability. This commit adds tests to assess this use case is covered. PR : #78230 opw-2631163 closes odoo/odoo#78523 X-original-commit: 6e1850e1300949d7be09c5ab462527811c0a2ebc X-original-commit: 8442a7f814008e115e3d895bac6f56feb6663c17 Signed-off-by:
LTU-Odoo <IT-Ideas@users.noreply.github.com> Co-authored-by:
Thibault Libioulle <tle@odoo.com>
-
Thibault Libioulle authored
This commit fixes multiple issues in project profitability report. Steps to reproduce opw-2596224: - Go to sale - Make a RFQ for a service product with service_policy set at delivered_timesheet (Timesheets on tasks), set quantity as 10 - Confirm order and create two invoices for 15%, confirm the two invoices - Create a credit note for one of the invoice and confirm it - Go back to the Sale Order and click on Project Overview => Inconsistencies (Downpayment reported twice) - Add an expense => Inconsistencies in expense amount untaxed invoiced - Add timesheets - Create an invoice from the SOL => Inconsistencies in Other costs, counting the downpayment. This issue is fixed by : - Excluding downpayments which are linked to a reversed invoice line - Use expense amount to invoice and expense amount invoiced separetely in the project overview. - Do not report not invoiced SOLs in the expense amount invoiced. - Exclude negative amounts in analytic account which are linked to credit notes. - Include all services and not timesheetes SOLs linked to project, project task or project's analytic account in the invoice/invoiced subquery. - Remove the unused downpayment column in the subqueries - Remove unused subquery (relative to downpayment) PR : #78230 opw-2596224 opw-2631163 X-original-commit: d0bce5403ef0876640022fea8951ff75ba7eb2ed X-original-commit: 92a80d0f25652448f3cf445edea563f56370613a Part-of: odoo/odoo#78523
-
Julien Banken authored
On the right panel of the mail editor, the icons of the mass mailing module do not match with the other icons. We will then update them to improve the consistency of the layout. The icons will now have the same background color as the other icons. task-2658133 Co-Authored-By Carlos Valverde <cvs@odoo.com> closes odoo/odoo#78163 Signed-off-by:
awa-odoo <awa-odoo@users.noreply.github.com>
-
Benjamin Vray authored
Before this commit, it was possible to edit scroll buttons with the editor toolbar. task-2656662 closes odoo/odoo#78562 X-original-commit: a80ad3ab Related: odoo/design-themes#520 Signed-off-by:
Quentin Smetz (qsm) <qsm@odoo.com>
-