Daily updates from Odoo
Wednesday, October 14, 2020
12 changes · master
Resolved issues and error corrections
This fixes inconsistent automated test results in the Belgian payroll accounting test suite by making the tests less dependent on unpredictable demo data setup. It helps keep development checks stable and reduces false failures that can slow delivery.
Original PR description
Since this test is designed to be dependent of demo data, it depends of already installed modules that is not deterministic. Co-authored-by: Yannick Tivisse <yti@odoo.com>
Code cleanup and technical improvements
Web Studio’s report editor has been adapted to work with Odoo’s new document editing engine. This keeps report customization compatible with the latest editor foundation and helps ensure a smoother editing experience going forward.
Original PR description
Adaptation of enterprise modules to the new Jabberwock editor (https://github.com/odoo/odoo/pull/59828).
Miscellaneous changes
Fix crashes in social.post and social.post.stream where activating studio threw OdooError. For social.post.stream, when activating studio the computed field are called but there is a CacheMiss in fields.py that throws a ValueError since these fields are not set in their respective _compute functions. For social.post, when website is also installed, there are NewIds that are json.dumps which raises an Error. Task ID: 2345084 Forward-Port-Of: odoo/enterprise#13544
Original PR description
Fix crashes in social.post and social.post.stream where activating studio threw OdooError. For social.post.stream, when activating studio the computed field are called but there is a CacheMiss in fields.py that throws a ValueError since these fields are not set in their respective _compute functions. For social.post, when website is also installed, there are NewIds that are json.dumps which raises an Error. Task ID: 2345084 Forward-Port-Of: odoo/enterprise#13544
Issue - Install "Subscriptions" - Go to "Subscriptions" => "Reporting" => "Revenues KPIs" Cause The 'compute_fiscalyear_dates' does not exist in res.company. Solution Add account_accountant dependency to sale_subscription_dashboard's manifest opw-2360408 Forward-Port-Of: odoo/enterprise#14024
Original PR description
Issue
- Install "Subscriptions"
- Go to "Subscriptions" => "Reporting" => "Revenues KPIs"
Cause
The 'compute_fiscalyear_dates' does not exist in res.company.
Solution
Add account_accountant dependency to sale_subscription_dashboard's manifest
opw-2360408
Forward-Port-Of: odoo/enterprise#14024[FIX] l10n_be_reports: Export tax reports in XML Issue - Set company country to Belgium - Install "Accounting" and "l10n_be_reports" - Go to Accounting/Tax reports - Press "Save" - Select XML tag in "Export to" field - Press "Export" Cause The 'res_model' and 'res_id' attributs doesnt exist. Solution The print_xml method was renamed in fd54ca8, so we use the new method instead. opw-2335781 Forward-Port-Of: odoo/enterprise#14039 Forward-Port-
Original PR description
[FIX] l10n_be_reports: Export tax reports in XML
Issue
- Set company country to Belgium
- Install "Accounting" and "l10n_be_reports"
- Go to Accounting/Tax reports
- Press "Save"
- Select XML tag in "Export to" field
- Press "Export"
Cause
The 'res_model' and 'res_id' attributs doesnt exist.
Solution
The print_xml method was renamed in fd54ca8, so we use the new method instead.
opw-2335781
Forward-Port-Of: odoo/enterprise#14039
Forward-Port-Of: odoo/enterprise#13946By using the same field for CompanyName and PersonaName the behaviour of the address is not consistent with other places in Odoo. So use the commercial_company_name if it exists. It will get some addresses a little more correct. Forward-Port-Of: odoo/enterprise#14055
Original PR description
By using the same field for CompanyName and PersonaName the behaviour of the address is not consistent with other places in Odoo. So use the commercial_company_name if it exists. It will get some addresses a little more correct. Forward-Port-Of: odoo/enterprise#14055
Task [2254368](https://www.odoo.com/web#id=2254368&action=333&active_id=967&model=project.task&view_type=form&cids=1&menu_id=4720) The correct terminology for Degressive is "Declining Balance" And the correct terminology for Accelerated Degressive is "Declining then Straight Line" Forward-Port-Of: odoo/enterprise#13265
Original PR description
Task [2254368](https://www.odoo.com/web#id=2254368&action=333&active_id=967&model=project.task&view_type=form&cids=1&menu_id=4720) The correct terminology for Degressive is "Declining Balance" And the correct terminology for Accelerated Degressive is "Declining then Straight Line" Forward-Port-Of: odoo/enterprise#13265
TASK ID: 2353115 Forward-Port-Of: odoo/enterprise#14048 Forward-Port-Of: odoo/enterprise#13949
Original PR description
TASK ID: 2353115 Forward-Port-Of: odoo/enterprise#14048 Forward-Port-Of: odoo/enterprise#13949
In Documents the Kanban view was customized to accommodate usage on smaller screens. But when the List view was introduced, those customization were not applied. This commit applies the same customization as the Kanban to the List view. Note: due to this fix being on a stable branch files cannot be renamed. Their names still contains "kanban" even if they apply on both Kanban and List views ; this will be fixed on master branch. Task ID: 2350354 Forward-Port-Of: odoo/enterprise#14
Original PR description
In Documents the Kanban view was customized to accommodate usage on smaller screens. But when the List view was introduced, those customization were not applied. This commit applies the same customization as the Kanban to the List view. Note: due to this fix being on a stable branch files cannot be renamed. Their names still contains "kanban" even if they apply on both Kanban and List views ; this will be fixed on master branch. Task ID: 2350354 Forward-Port-Of: odoo/enterprise#14016 Forward-Port-Of: odoo/enterprise#13761
The field l10n_mx_edi_customs_number is missing on the invoice line view. In v13 that field is added in: https://github.com/odoo/enterprise/blob/13.0/l10n_mx_edi/views/account_invoice_view.xml#L36 Forward-Port-Of: odoo/enterprise#14008
Original PR description
The field l10n_mx_edi_customs_number is missing on the invoice line view. In v13 that field is added in: https://github.com/odoo/enterprise/blob/13.0/l10n_mx_edi/views/account_invoice_view.xml#L36 Forward-Port-Of: odoo/enterprise#14008
The assets require the access group to be lazyLoaded from the pdf splitter, this fix ensures that it remains the case following odoo/odoo#59578. See odoo/odoo#44993 backport of https://github.com/odoo/enterprise/commit/d37398399f1257418d05b345ed217aeb6e297cee Forward-Port-Of: odoo/enterprise#14030
Original PR description
The assets require the access group to be lazyLoaded from the pdf splitter, this fix ensures that it remains the case following odoo/odoo#59578. See odoo/odoo#44993 backport of https://github.com/odoo/enterprise/commit/d37398399f1257418d05b345ed217aeb6e297cee Forward-Port-Of: odoo/enterprise#14030
The mixin "o-scrollbar-overlay" has been removed since it layed on non-standard CSS properties to make the scrollbar overlap on the content. The initial intent was to have the scrollbar displayed on top of its related content using a simple CSS-only solution. Unfortunately such a property does not exist in the current standards. As such, this fix consists of a small hack in the home menu component meant to compensate the scrollbar width with an equally large padding left calculated o
Original PR description
The mixin "o-scrollbar-overlay" has been removed since it layed on non-standard CSS properties to make the scrollbar overlap on the content. The initial intent was to have the scrollbar displayed on top of its related content using a simple CSS-only solution. Unfortunately such a property does not exist in the current standards. As such, this fix consists of a small hack in the home menu component meant to compensate the scrollbar width with an equally large padding left calculated on each visual update. /!\ as the standards evolve we may someday be able to use a one-line css property to achieve this. If/when this happens this fix must be adapted accordingly. Community: https://github.com/odoo/odoo/pull/58488 Forward-Port-Of: odoo/enterprise#14028 Forward-Port-Of: odoo/enterprise#13547