Monday, February 15, 2021
43 changes · master
New functionality added to Odoo
Odoo now supports writing browser code with modern JavaScript modules while still packaging it for Odoo’s dynamic app system. This improves developer productivity through better editor assistance, easier refactoring, and sourcemaps that keep debugging practical in asset debug mode.
Original PR description
Because of the way Odoo works at its core, we do not know before hand which files will be loaded as an asset in the browser, because it depends on the installed Odoo addons. This is why it is…
Because of the way Odoo works at its core, we do not know before hand which files will be loaded as an asset in the browser, because it depends on the installed Odoo addons. This is why it is historically difficult to integrate Odoo with standard JS tooling, and this is why Odoo needs to use a custom javascript module system. However, there is a way to use native JS modules (and gain all the benefits from it: IDE autocompletion, ease of refactoring, intellisense, ...): we can write JS as native JS modules, but convert them at runtime into Odoo custom modules. This is exactly the strategy applied by this PR. This has a lot of benefits, but there is a downside: we can no longer serve statically JS files in debug=assets. This would be a dealbreaker, if we did not have sourcemaps. So, this PR introduces - support for native JS modules - add a specific asset controller `/web/assets/` - generate sourcemaps (for debug=assets mode) Note that part of the complexity of this work is cause by the debug=assets mode, where we need to have a fixed route for the debug asset bundle (so we do not lose breakpoints when debugging), but we still need to safely regenerate the bundles whenever the JS code is modified.
Enhancements to existing features
This update lets accounting teams choose whether a tax should be influenced by taxes calculated before it. This improves support for jurisdictions or business cases where taxes must remain independent from earlier tax amounts, reducing manual workarounds and calculation errors.
Original PR description
task: 2343958 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
Forms that do not use a sheet layout now display correctly when they include a button box or notebook section. This removes an unnecessary horizontal scrollbar, improving usability and visual polish without changing business behavior.
Original PR description
PURPOSE Form without sheet tag and Button Box or Notebook should not have unnecessary horizontal scrollbar. SPEC If formview does not have sheet tag and form contains Button Box or Notebook tag then form should be displayed without unncessary horizontal scrollbar. TASK 2411627 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Features or functions removed from Odoo
An old internal option for skipping HTML escaping in QWeb field formatting has been removed because it is no longer used. This simplifies the underlying page rendering code with minimal expected impact on users or business workflows.
Original PR description
QWeb fields formatting would go to its own `html_escape` function which could skip escaping depending on an option This option is completely unused. This is some proto-html-field thing from the early days (added in 2013) kept alive through the darkest of magics, it's unclear that it's ever been used.
Miscellaneous changes
When adding a line to a new SO, if the delivery date is in the future, and even though the quantity will be sufficient at that time, the symbol of the quantity remains red ("Not available"). To reproduce the error: 1. Create a storable product P 2. Create + Confirm a RfQ - Add 1 x P - Set the receipt date in the future (e.g., today + 7 days) - (! Do not receive the product) 3. Create a SO - Add 1 x P - (In Other Info) Set the delivery date after the receipt date
Original PR description
When adding a line to a new SO, if the delivery date is in the future, and even though the quantity will be sufficient at that time, the symbol of the quantity remains red ("Not available"). To…
When adding a line to a new SO, if the delivery date is in the future,
and even though the quantity will be sufficient at that time, the
symbol of the quantity remains red ("Not available").
To reproduce the error:
1. Create a storable product P
2. Create + Confirm a RfQ
- Add 1 x P
- Set the receipt date in the future (e.g., today + 7 days)
- (! Do not receive the product)
3. Create a SO
- Add 1 x P
- (In Other Info) Set the delivery date after the receipt date
(e.g., today + 8 days)
4. Save & Go back to order lines
Error: The chart next to the requested quantity is always red. This is
not true since the delivery is scheduled after the product reception. If
you click on the chart, the forecasted stock on delivery date is 1.
Therefore, the chart should be green.
This fix improves #60054: the latter updates the computation of
`will_be_fulfilled` using `free_qty_today` because there was an issue
when the SO is confirmed. However, the initial widget behaviour was
correct when the SO is not confirmed.
OPW-2440724
Forward-Port-Of: odoo/odoo#65989
Forward-Port-Of: odoo/odoo#65926The website membership area now keeps an internal lookup method private instead of publicly accessible. This reduces unnecessary exposure and supports safer handling without changing normal user-facing membership features.
Original PR description
No sensitive information is releaved when querying this method but no reason to let it public either. Better safe than sorry.
The stock Product Moves report now includes quick filters for the last 12 months, 3 months, and 30 days, with the last 12 months applied by default. Users can also filter moves by standard date periods, and product pages now show incoming and outgoing stock move counts from the past year, making recent movement activity easier to review.
Original PR description
Small improvements to the Product Moves (move line) report: - added 3 new filters: Last 12 Months, Last 3 Months, and Last 30 Days (default Last 12 Months) - added standard Date filter (i.e. by quarter, month, year) - updated the Stock Moves stat button in product [template] view to display # incoming/outgoing moves within the past 12 months Task: 2371067 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change merges the extended electronic invoicing capabilities into the main accounting EDI module, reducing module fragmentation and making related payment and invoice workflows easier to manage. Businesses should see a more unified electronic document experience with the same functionality maintained in one place.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change adds clear internal labels to the main parts of a large sales timesheet view, making it easier and safer for future customizations to target the right sections. It helps reduce the risk of errors when other modules or customer-specific changes build on this screen.
Original PR description
Description of the issue/feature this PR addresses: Allow easier and safer `xpath` expressions. Current behavior before PR: As the view is huge and quite some HTML elements are used a few times (table for example) it is risky to do operations on this view. Especially since some enterprise modules build further on this. Desired behavior after PR is merged: After this commit all major elements have a name which allow easy xpathing for inheritance. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The website editor now has a reusable way to edit linked record fields, replacing a more limited snippet-specific approach. This makes editor options more consistent and easier to extend for future website editing features.
Original PR description
Previously, edition of many2ones in the front-end was done through a snippet option. While this works fine for raw many2ones in the page, it is desirable that other snippet options can leverage a many2one as a part of a more complete or comprehensive option. This commit introduces a many2one userValueWidget that will be able to be reused by snippet options, and adapts the existing many2one snippet option to use it instead. The interface has also been reworked so as to lean on the existing we-select userValueWidget for the sake of interface consistency. task-2190603
Website editors can now better tailor Banner and Cover sections by adjusting paragraph size, vertical content placement, and box padding. This makes it easier to create visually balanced pages without custom code.
Original PR description
- Change paragraph font size - Small, Normal, Lead - Change content vertical position - Top, Middle, Bottom - Change box padding - From p-1 to p-5 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website paragraphs using the lead style now use an 18px font size, matching a standard choice in the editor. This makes the selected size show correctly when editing and reduces confusion for users adjusting page text.
Original PR description
Currently, when you edit a paragraph with the lead class, the font-size is set to 17px. This value is not available in the font-size dropdown of the editor. So no value is set as active (checked). With this change, the lead font-size will now be 18px and match a default value from the editor. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Enterprise modules have been aligned with recent changes in Odoo's web platform so they continue to work correctly with updated JavaScript assets. This keeps document management, spreadsheets, dashboards, mobile search panels, and Studio reporting compatible with the latest core improvements.
Original PR description
Community PR :https://github.com/odoo/odoo/pull/63177
The Peruvian electronic invoicing module now depends on the current accounting EDI module after related modules were merged. This keeps the module aligned with the platform structure and reduces maintenance issues without changing day-to-day business workflows.
Original PR description
…nt_edi ... since both modules have been merged See https://github.com/odoo/odoo/pull/65745
This update adds a missing name label to the TypeScript configuration command. It helps Odoo correctly recognize and run this internal command, reducing the chance of setup or developer tooling issues.
Forms without a sheet layout no longer show an unnecessary horizontal scrollbar when they include notebook or button box content. This keeps form pages cleaner and prevents distracting sideways scrolling for users.
Original PR description
PURPOSE Form without sheet tag and Button Box or Notebook should not have unnecessary horizontal scrollbar. SPEC If formview does not have sheet tag and form contains Button Box or Notebook tag then form should be displayed without unncessary horizontal scrollbar. TASK 2411627
Renaming a menu item in Studio now also updates the name of its related action. This keeps menu labels and the screens they open consistent, reducing confusion for users managing customized apps.
Original PR description
Currently, in master when rename menu item it will not rename the corresponding window action So, in this commit when user rename menu item its will also rename the corresonding window action. TaskId: 2431690
When synced, if the user has an event on Microsoft Calendar and if this user is not the organizer (he is only an attendee), he will have to enable "Everybody's calendars" on Odoo Calendar to see this event. To reproduce the error: (Need one Google/Microsoft account A01 and one Microsoft account A02) 1. With A01, on Google/Microsoft calendar, create an event and invite A02 2. On Odoo, enable the sync with Microsoft - See [instructions](https://www.odoo.com/documentation/user/14.0/genera
Original PR description
When synced, if the user has an event on Microsoft Calendar and if this user is not the organizer (he is only an attendee), he will have to enable "Everybody's calendars" on Odoo Calendar to see this…
When synced, if the user has an event on Microsoft Calendar and if this user is not the organizer (he is only an attendee), he will have to enable "Everybody's calendars" on Odoo Calendar to see this event. To reproduce the error: (Need one Google/Microsoft account A01 and one Microsoft account A02) 1. With A01, on Google/Microsoft calendar, create an event and invite A02 2. On Odoo, enable the sync with Microsoft - See [instructions](https://www.odoo.com/documentation/user/14.0/general/calendars/outlook/outlook_calendar.html) 3. Go to Odoo Calendar, click on "Sync With Outlook" - ! The sync must be done with A02 Error: The event is not displayed. The user must enable "Everybody's calendars" to see it. The problem comes from the attendees creation: it uses Microsoft attendees' email address to link a partner with the event. However, nothing ensures or requires that A02's email address is the same than current partner's one. As a result, it is possible that the current partner is not among the attendees. Moreover, Microsoft does not say which attendee is the synced one. Thus, this fix always adds the current partner to the attendees, so he will no longer need to enable "Everybody's calendars". OPW-2439189 Forward-Port-Of: odoo/odoo#65387
Fixes #65706 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65742
Original PR description
Fixes #65706 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65742
Description of the issue/feature this PR addresses: Improve onboarding of new users to the website builder by making some layout quick wins. Also trying to make the tool as consistent as possible. Current behavior before PR: There is a padding between Product Attributes filter subitems 'Recently View Products' is active by default Image gallery miniatures are not updated when changing an image Desired behavior after PR is merged: There is no padding between Product Attributes filter
Original PR description
Description of the issue/feature this PR addresses: Improve onboarding of new users to the website builder by making some layout quick wins. Also trying to make the tool as consistent as possible. Current behavior before PR: There is a padding between Product Attributes filter subitems 'Recently View Products' is active by default Image gallery miniatures are not updated when changing an image Desired behavior after PR is merged: There is no padding between Product Attributes filter subitems 'Recently View Products' is inactive by default Image gallery miniatures are updated when changing an image task-2438556 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65249
Before this commit: * When a o_status class is set on a label element it is not well displayed in project.task_type_edit, event.event_stage_view_form and helpdesk.helpdesk_stage_view_form since this commit has been introduced 288b24cbdf54ac0dbee7e012f074fac9a0c68238 After this commit: * o_status labels are correctly displayed. task-2453268 Related PR: odoo/enterprise#16173 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port
Original PR description
Before this commit: * When a o_status class is set on a label element it is not well displayed in project.task_type_edit, event.event_stage_view_form and helpdesk.helpdesk_stage_view_form since this commit has been introduced 288b24cbdf54ac0dbee7e012f074fac9a0c68238 After this commit: * o_status labels are correctly displayed. task-2453268 Related PR: odoo/enterprise#16173 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65768
During this step of the tour, we want the user to drag and drop the card. But one should still be able to schedule an activity. The tour should never prevent you from doing something. In this commit the possition of the bubble is changed from bottom to the right of the card, thus it will not prevent users from scheduling activities. task-id: 2449223 Forward-Port-Of: odoo/odoo#65336
Original PR description
During this step of the tour, we want the user to drag and drop the card. But one should still be able to schedule an activity. The tour should never prevent you from doing something. In this commit the possition of the bubble is changed from bottom to the right of the card, thus it will not prevent users from scheduling activities. task-id: 2449223 Forward-Port-Of: odoo/odoo#65336
We actually want to keep on computing tax tags this way. Consider the following example: - configure a sales tax like this amount : 20% 100% - base : +01 100% - taxe : +02 -10% - taxe: -03 - Make an invoice for 100. It looks like this: credit 100 - debit 0 - +01 credit 20 - debit 0 - +02 credit 0 - debit 2 - -03 ===> Since the repartition line was configured with a negative factor, and because credit lines with + tags do + in the report, we actually expect the tax report t
Original PR description
We actually want to keep on computing tax tags this way. Consider the following example: - configure a sales tax like this amount : 20% 100% - base : +01 100% - taxe : +02 -10% - taxe: -03 - Make an invoice for 100. It looks like this: credit 100 - debit 0 - +01 credit 20 - debit 0 - +02 credit 0 - debit 2 - -03 ===> Since the repartition line was configured with a negative factor, and because credit lines with + tags do + in the report, we actually expect the tax report to contain +2 in grid 03, since we're applying tag -03 to a negative amount. That's why this fix was a bad idea. Forward-Port-Of: odoo/odoo#66095
Create a puchase order for a portal customer with sections and notes in the order. Confirm and send email. Access portal with the customer and look for the PO. Section and notes will be displayed as products, with quantity 0, unit price 0,... opw-2429376 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-
Original PR description
Create a puchase order for a portal customer with sections and notes in the order. Confirm and send email. Access portal with the customer and look for the PO. Section and notes will be displayed as products, with quantity 0, unit price 0,... opw-2429376 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65953
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#66129
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#66129
Combining domains using `+` is not ideal as it's somewhat easy to unwittingly create broken ones and perform unexpected selections. Combining with `expression.AND` should be a lot more reliable. Forward-Port-Of: odoo/odoo#66133
Original PR description
Combining domains using `+` is not ideal as it's somewhat easy to unwittingly create broken ones and perform unexpected selections. Combining with `expression.AND` should be a lot more reliable. Forward-Port-Of: odoo/odoo#66133
…atement Line with no Partner - Go to Accounting > Configuration > Reconciliation Models - Create a Reconciliation Model: * Type: Suggest counterpart values * Amount Nature: Amount Paid/Received * Label: Contains test * Counterpart Values: [Add a line with "Percentage of balance" as Amount Type and 100 as Amount, for example] - Create a Bank Statement of any amount with "test" as Label and no Partner - Post Bank Statement and Reconcile it Created Bank Statement matches conditi
Original PR description
…atement Line with no Partner - Go to Accounting > Configuration > Reconciliation Models - Create a Reconciliation Model: * Type: Suggest counterpart values * Amount Nature: Amount Paid/Received *…
…atement Line with no Partner - Go to Accounting > Configuration > Reconciliation Models - Create a Reconciliation Model: * Type: Suggest counterpart values * Amount Nature: Amount Paid/Received * Label: Contains test * Counterpart Values: [Add a line with "Percentage of balance" as Amount Type and 100 as Amount, for example] - Create a Bank Statement of any amount with "test" as Label and no Partner - Post Bank Statement and Reconcile it Created Bank Statement matches conditions of Reconciliation Model but Counterpart Values are not suggested. No counterpart values are suggested if there is no Partner on Bank Statement During preparation of reconciliation, reconciliation is skipped because an open balance has to be created but no receivable/payable account is retrieved as there is no Partner on Bank Statement. If no Partner is set, receivable/payable account is retrieved from company. opw-2441484 opw-2442491 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65829
**task 426** -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#62702
Original PR description
**task 426** -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#62702
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#66140 Forward-Port-Of: odoo/odoo#66043
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#66140 Forward-Port-Of: odoo/odoo#66043
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65710
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#65710
Imepcted borwser: google chrome Before Commit: ------------ when website header is right side i.e. header template is set to 'sidebar'.opening navbar dropdown does not open in the right place, instead, it opens below another the menu. After commit: ------------ Fix the issue by changing the CSS position, so, the navbar dropdown menu will be displayed in the proper place. Forward-Port-Of: odoo/odoo#65548
Original PR description
Imepcted borwser: google chrome Before Commit: ------------ when website header is right side i.e. header template is set to 'sidebar'.opening navbar dropdown does not open in the right place, instead, it opens below another the menu. After commit: ------------ Fix the issue by changing the CSS position, so, the navbar dropdown menu will be displayed in the proper place. Forward-Port-Of: odoo/odoo#65548
The update of fullcalendar (ebce7719b) in 14.0 made #45881 not working (they both happened in same month). opw-2214445 Forward-Port-Of: odoo/odoo#65451
Original PR description
The update of fullcalendar (ebce7719b) in 14.0 made #45881 not working (they both happened in same month). opw-2214445 Forward-Port-Of: odoo/odoo#65451
**Task 431** Description of the issue/feature this PR addresses: Fix pre-printed report so that invoice date remains in same position as if not pre-printed -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#63592
Original PR description
**Task 431** Description of the issue/feature this PR addresses: Fix pre-printed report so that invoice date remains in same position as if not pre-printed -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#63592
Before, when you had already a Peruvian company with posted_before customer invoices, the installation of the module would fail in the post_init_hook as it would not be able to let it set l10n_latam_use_documents on the journal. Now we check this first. Also in the function that checks if the invoicing is required, we check if the journal uses document types/numbers, so the old journal can still exist. Forward-Port-Of: odoo/enterprise#16276
Original PR description
Before, when you had already a Peruvian company with posted_before customer invoices, the installation of the module would fail in the post_init_hook as it would not be able to let it set l10n_latam_use_documents on the journal. Now we check this first. Also in the function that checks if the invoicing is required, we check if the journal uses document types/numbers, so the old journal can still exist. Forward-Port-Of: odoo/enterprise#16276
Forward-Port-Of: odoo/enterprise#16186
Original PR description
Forward-Port-Of: odoo/enterprise#16186
[IMP] payment_sepa_direct_debit: better error message when reusing a res.partner.bank When paying a web order using SEPA Direct Debit, if the IBAN account entered by the user already existed in the database, an error message was displayed to the user, directly telling an account only can belong to one partner ( https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/models/res_bank.py#L92 ) . This was pretty obscure, so we replace it by something more user-friendly. We ask the user to login,
Original PR description
[IMP] payment_sepa_direct_debit: better error message when reusing a res.partner.bank When paying a web order using SEPA Direct Debit, if the IBAN account entered by the user already existed in the…
[IMP] payment_sepa_direct_debit: better error message when reusing a res.partner.bank When paying a web order using SEPA Direct Debit, if the IBAN account entered by the user already existed in the database, an error message was displayed to the user, directly telling an account only can belong to one partner ( https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/models/res_bank.py#L92 ) . This was pretty obscure, so we replace it by something more user-friendly. We ask the user to login, as it is very likely the error occurs simply because he already had an account and is recreating it entirely instead of reusing his existing account. [FIX] payment_sepa_direct_debit: only search for an existing mandate on the current company You don't expect a mandate given to company A to be usable for operations of company B. A new mandate must then be created. [FIX] account_batch_payment: fix batch payment validation for reconciled and sent payments Before the payments refactoring, 'sent' and 'reconciled' were states on account.payment. Payments now have an inherits link to an account.move, and are reusing its fields. 'sent' and 'reconciled' states have been replaced by dedicated fields. [FIX] account_sepa_direct_debit, account_sepa: fix filters after payments refactoring Forward-Port-Of: odoo/enterprise#16208
Currently, when switchback to view tab after checked Show Invisible Elements checkbox , Show Invisible Elements checkbox become unchecked , but invisible element still displayed in this commit, when switchback to view tab after checked Show Invisible Elements checkbox , Show Invisible Elements checkbox stay checked, invisible element display or hide, when checked Show Invisible Elements checkbox TaskId: 2358101 Forward-Port-Of: odoo/enterprise#15443
Original PR description
Currently, when switchback to view tab after checked Show Invisible Elements checkbox , Show Invisible Elements checkbox become unchecked , but invisible element still displayed in this commit, when switchback to view tab after checked Show Invisible Elements checkbox , Show Invisible Elements checkbox stay checked, invisible element display or hide, when checked Show Invisible Elements checkbox TaskId: 2358101 Forward-Port-Of: odoo/enterprise#15443
Go to Accounting / Reporting / Colombian Statements / Certificado de retencíon en ICA Click Save, select 'PDF' and export Traceback: File "/data/build/enterprise/account_reports/wizard/report_export_wizard.py", line 60, in _get_attachments_to_save output_format = report_action['data']['output_format'] KeyError: 'data' The data structure we get back from the print_pdf override of l10n_co_reports does not seem compatible with how we currently save reports opw-2428444 Forward-Port
Original PR description
Go to Accounting / Reporting / Colombian Statements / Certificado de retencíon en ICA Click Save, select 'PDF' and export Traceback: File "/data/build/enterprise/account_reports/wizard/report_export_wizard.py", line 60, in _get_attachments_to_save output_format = report_action['data']['output_format'] KeyError: 'data' The data structure we get back from the print_pdf override of l10n_co_reports does not seem compatible with how we currently save reports opw-2428444 Forward-Port-Of: odoo/enterprise#16284
But keep test with the correct behavior. Forward-Port-Of: odoo/enterprise#16320
Original PR description
But keep test with the correct behavior. Forward-Port-Of: odoo/enterprise#16320
Steps to reproduce the bug: - Let's consider a colombian company C - Create a customer invoice I with one line L - Set 100€ on L with account 236805 - Confirm I, reset to draft and cancel it - Go to Reporting > Certificado de Retención en ICA Bug: Journal item L was taking into account in the report opw:244635 Forward-Port-Of: odoo/enterprise#16219
Original PR description
Steps to reproduce the bug: - Let's consider a colombian company C - Create a customer invoice I with one line L - Set 100€ on L with account 236805 - Confirm I, reset to draft and cancel it - Go to Reporting > Certificado de Retención en ICA Bug: Journal item L was taking into account in the report opw:244635 Forward-Port-Of: odoo/enterprise#16219
Before this commit: * When a o_status class is set on a label element it is not well displayed in project.task_type_edit, event.event_stage_view_form and helpdesk.helpdesk_stage_view_form since this commit has been introduced 1899a65a3e80c4ddec45183394a0d21cc723708a After this commit: * o_status labels are correctly displayed. task-2453268 Related PR: odoo/odoo#65768 Forward-Port-Of: odoo/enterprise#16173
Original PR description
Before this commit: * When a o_status class is set on a label element it is not well displayed in project.task_type_edit, event.event_stage_view_form and helpdesk.helpdesk_stage_view_form since this commit has been introduced 1899a65a3e80c4ddec45183394a0d21cc723708a After this commit: * o_status labels are correctly displayed. task-2453268 Related PR: odoo/odoo#65768 Forward-Port-Of: odoo/enterprise#16173
PURPOSE Drag and drop in edit menu dialog in studio should respect RTL direction. SPEC Drag and drop in edit menu dialog in studio behaves wrongly, drag and drop menu right side moves menu inside and drag and drop menu left side moves menu outer side so it is not respecting rtl direction, edit menu dialog should respect rtl direction. TASK 2417488 Forward-Port-Of: odoo/enterprise#15331
Original PR description
PURPOSE Drag and drop in edit menu dialog in studio should respect RTL direction. SPEC Drag and drop in edit menu dialog in studio behaves wrongly, drag and drop menu right side moves menu inside and drag and drop menu left side moves menu outer side so it is not respecting rtl direction, edit menu dialog should respect rtl direction. TASK 2417488 Forward-Port-Of: odoo/enterprise#15331
This commit fixes the post-cell-edit glitch issue by updating value in the model state before rpc call. The issue can be described as follow : the edited value disappear during a while when the user has updated a value and is then re-rendered. On large databases, the glitch can last a longer time and is more visible. Previous behaviour : The previous value of the update cell is shown the time between the two rpc calls (adjust_grid, read_group) because the rendering is done just af
Original PR description
This commit fixes the post-cell-edit glitch issue by updating value in the model state before rpc call. The issue can be described as follow : the edited value disappear during a while when the user…
This commit fixes the post-cell-edit glitch issue by updating value in
the model state before rpc call.
The issue can be described as follow : the edited value
disappear during a while when the user has updated a value
and is then re-rendered. On large databases, the glitch can
last a longer time and is more visible.
Previous behaviour :
The previous value of the update cell is shown the time between the
two rpc calls (adjust_grid, read_group) because the rendering is done
just after adjust_grid with editMode not set and the cell value not
updated in the model rendered.
- User triggers _onUpdateValue by writing a new value
(let's say : (new : 42, old : 0))
- The rendering is updated during the call to rpc in the
grid_controller.js _adjust method.
-> As the state.editMode to render the web_grid.CellValue is
false, the rendering is a div with the cell.value user,
which is the previous state value : 0.
- The rendering is updated once again after the result of read_group
=> Cell value = new_value : 42.
Expected Behaviour :
Between the two rpc calls, the editMode is still true, which allows the
web_grid.CellValue template to render an input cell with the
currentInput value : 42. The user get not troubled by the value changes
and the behaviour is more smooth regarding UX.
task-2389731
Forward-Port-Of: odoo/enterprise#16006