Daily updates from Odoo
Monday, January 21, 2019
7 changes · master
Resolved issues and error corrections
This fix restores image-related tools that stopped working after a prior editor update. Website teams can again upload SEO images, choose page backgrounds, select blog covers, and use gallery images reliably.
Original PR description
* web_editor, website_blog Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the media dialog was refactored but the code which used it outside of the editor was not adapted at all. Also, the selected image was not saved correctly anymore, making the media dialog useless outside the editor in the current implementation. - Adapted SEO image uploading and body image background choice which were not working anymore - Adapted blog cover choice and gallery snippet which were strangely still working even though there were sending wrong parameters during media dialog initialization
This fix restores website editor-related dialogs and controls that were crashing after a recent editor update. Website users can again use media, image editing, and customization tools reliably outside the main editor.
Original PR description
* web_editor Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the editor dialog and the switches crashed on their use in website. This is because the merge split some xml files without adapting xml dependencies... this commit only takes care of code which depended on '/web_editor/static/src/xml/editor.xml'.
Payroll salary rule accounting can now be managed separately across companies. This prevents one company's accounts from appearing in or overwriting another company's payroll setup, reducing the risk of incorrect payslip accounting.
Original PR description
…nies Before this commit - Install a **l10n_xx_hr_payroll** which includes information of the rules (it always install in the main company: **Company A** in this use case). - Configure the accounting…
…nies Before this commit - Install a **l10n_xx_hr_payroll** which includes information of the rules (it always install in the main company: **Company A** in this use case). - Configure the accounting for the rules - Create **Company B** - Use the same salary rules for both companies, as **l10n_xx_hr_payroll** modules are not multicompany. Behavior: - **Company A** accounts are shown in **Company B** salary rules. - If the accounts are changed in **Company B** rules, it also overrides **Company A** accounts, (which causes major confusions, and great mistakes if a payslip is run). - A salary rule with **Company A** set on `company_id` can still be **seen** through Company B. which causes that it can be mistakenly _ran by a user in Company B_, with the _accounting of Company A_. After this commit: Salary rules accounting can be used with multi-company **OPW** 1847799 Fixes #23814 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Payslips must now have a company assigned before they can be used. This prevents payroll reports from missing the company header, helping ensure printed payslips look complete and professional.
Original PR description
Description of the issue/feature this PR addresses:
Task: https://www.odoo.com/web?#id=51511&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720
Pad: https://pad.odoo.com/p/r.0a748c43b32ca19dd0d886cab5df7ba2
Current behavior before PR:
- Printing pay slips when they don't have a company id set doesn't print the header on the report
Desired behavior after PR is merged:
- If set the company_id field required
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThe website editor color picker now correctly loads the opacity value from an existing color. This prevents users from seeing or applying the wrong transparency when editing content colors.
Original PR description
Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the colorpicker was not properly initializing the opacity component of the given color anymore.
Fixed a layout issue where stat button content in the Enterprise web interface could spill outside the button after a Bootstrap update. This keeps buttons visually tidy and easier to read without changing business functionality.
Original PR description
Stats button on enterprise have the icon (30% of width) the label (70% of width) and 6px margin on the left of the icon. Thus this does not fit exactly and the content is put outside of the button. This did not happen when `white-space:nowrap` was set in button on bootstrap, but this has been removed in bootstrap 4.2.0 ( https://github.com/twbs/bootstrap/commit/24bdadf9d32 ) which is applied in Odoo as of odoo/odoo@63e52e6acf opw-1931085
This fixes a problem where media selection stopped working in Odoo Studio report building blocks after an editor update. Users can again insert or manage media in reports from Studio as expected.
Original PR description
Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the media dialog was refactored but the code which used it outside of the editor was not adapted at all. Enterprise part of https://github.com/odoo/odoo/pull/30416