Daily updates from Odoo
Tuesday, August 13, 2019
13 changes
Resolved issues and error corrections
Project task closure time is now calculated using working days from the relevant calendar instead of converting hours into 24-hour days. This gives businesses more realistic reporting on how long tasks remain open, especially when teams follow defined working schedules.
Original PR description
https://www.odoo.com/web?debug#id=37561&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Employee records now show the associated company on the employee form in multi-company setups. This helps users clearly identify which company an employee belongs to and reduces confusion when managing staff across several companies.
Original PR description
The company of an employee should be displayed in a multi company setup. Task 2052917 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Coupon PDF reports now show the “Code:” label correctly instead of leaving a blank space. This ensures customers and staff can clearly read coupon information on generated reports.
Original PR description
In master, em tag are not displayed in PDF report. Strangly, the space to display the element is taken but the element content is invisible. If the action report is change from PDF to HTML, the element is displayed as it should, in italic. As having `Code:` in italic is not that mandatory, this commit removes the em tag to display `Code:` again. Before:  After: 
This fix prevents survey respondents from seeing unexpected crash warnings when they enter an invalid date or time. The survey form now handles these input errors directly, creating a smoother and less alarming experience for users.
Original PR description
Task:https://www.odoo.com/web#id=2044512&action=333&active_id=1251&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.115300c367e6834394be032dbe299dcc -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Corrected how the purchase order shortcut is added to product template views so Studio no longer crashes when users edit those forms. This improves stability for teams customizing product screens while keeping the purchasing shortcut available as intended.
Original PR description
The stat button for the action `action_view_po` was improperly injected in the product template views, causing studio to crash when editing the product template form view. TaskID: 2052317
The bundled Open Sans font files were renamed to remove spaces from their folder and file names. This avoids a packaging issue that could prevent RPM builds from completing successfully, without changing the product experience for users.
Original PR description
Since ed18095127, some google fonts are included. The "Open Sans" fonts prevents RPM packaging to work because of white spaces in file names. This is a Python setuptools bug (https://bugs.python.org/issue809163) which is not yet fixed. With this commit, the "Open Sans" directory and ttf files are renamed into "Open_Sans", solving the packaging problem.
This fix prevents an error when the system checks for an IAP account and none exists, while account creation is disabled. Instead, it safely returns no account, helping multi-company setups continue without an unnecessary interruption.
Original PR description
If "force_create" is false and no account was previously created, the function will raise an error. With this fix, an empty recordset is returned. 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 fixes an issue where opening or editing the picking type on manufacturing orders could trigger a context parsing error. The change helps users work with manufacturing orders more reliably without being interrupted by a technical error.
Original PR description
Follow up of revision https://github.com/odoo/odoo/commit/fd6aa428ce7b7ab03ba920b1c020f5862f56f731.
The status ribbon shown on several record forms has been repositioned so it no longer overlaps important action buttons or images. This improves readability and makes forms easier to use across multiple business apps.
Original PR description
Moved the widget tag from form views to place it below the oe_button_box element to fix the overlapping of the widget over that element if the widget is on top of it. Task ID : 2032621
Fixes a crash that could occur when editing marketing automation activities. This helps users continue updating campaigns without interruptions caused by recent internal record handling changes.
Original PR description
… brisbouille) Probably because of https://github.com/odoo/odoo/commit/d0bb596f1d51b72a6aa20d56eef3e65aefbd09b2 marketing automation is broken. Indeed onchanges are broken because of id / newid new computation. Somehow tester did not test marketing automation, so sad dev is sad.
This fixes an issue where unsupported document viewer options could appear in Studio for manufacturing work orders. Keeping those viewer options hidden helps prevent users from selecting views that are not intended to work there, reducing confusion and setup errors.
This update fixes errors that could occur when users created or opened subscriptions belonging to another allowed company. It also improves company tracking on subscription templates and lines, making multi-company subscription handling more reliable.
The stock move list no longer shows a create button that could not be used meaningfully. This avoids user confusion because most fields in that list are read-only, so creating a new entry there was not practical.
Original PR description
Commit 81b2c49 adds an editable list view on stock.move but did not restrict create access. The create button is useless as all the columns except 'scheduled_date' are readonly. Task : 2003485