Wednesday, March 11, 2020
7 changes · master
Enhancements to existing features
This update lets Odoo hide or show the import button based on settings defined for a list view. It gives businesses more control over when users can import data, helping tailor screens to the intended workflow.
Original PR description
passing the import attribute to hide import button which taken value from context to eval the code we have used py_eval method of pyUtils. before this we are converting the context value form object params. task- 2184268 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
Time off plans can now accrue leave based on a number of days, in addition to existing weekly, monthly, and yearly options. This gives businesses more flexibility to match leave policies that accumulate entitlement on a daily schedule.
Original PR description
Purpose of this task is some people would like to make accrual in days. But currently accruals work on different periods(week,month,year). - we add "days" as "interval unit". LINKS: TaskID :2168023 PR: #46751
The main Odoo workflow test now also runs on mobile-sized screens, helping teams catch issues that could block users on phones. Several guided test steps were adjusted across sales, accounting, CRM, events, expenses, recruitment, point of sale, projects, and purchasing so common tasks remain usable on mobile.
Original PR description
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
Users can now choose a color for signatures, with blue used as the default. This improves the signing experience by making signatures clearer and more customizable in business documents.
Original PR description
Blue by default taskID: 2196770 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo will now enable accent-insensitive features whenever the database has the required PostgreSQL unaccent capability installed, instead of depending on a separate startup flag. This makes behavior more consistent with the actual database configuration while avoiding changes for databases without that capability.
Original PR description
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.
The main business workflow test now also runs on a mobile-sized screen, helping teams catch issues that could block users on phones. Several app tours were adjusted or shared helper steps were reorganized so mobile users can still complete common tasks even if the layout is not perfect.
Original PR description
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/odoo/pull/46880 Task ID: 2149402
Resolved issues and error corrections
This fixes an issue where some uploaded files could be misidentified because they were processed as if they were base64 encoded. Users should see fewer incorrect upload errors, especially for files like spreadsheets.
Original PR description
If we pass a non base64 binary file, the function convert_to_column may not work as expected. Indeed, with b64decode, all characters that are neither in the normal base-64 alphabet nor the alternative alphabet are discarded prior to the padding check. The first decoded characters may not be representative of the original file, so the function guess_mimetype will return a wrong mimetype. For example, a .xlsx file will be detected as SVG file and an exception will be raised if the user isn't admin. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr