Daily updates from Odoo
Navigate
Branch
Wednesday, January 30, 2019
19 changes
New functionality added to Odoo
This change adds a new way to build customized Odoo screens using server-rendered QWeb views, reducing the need for custom JavaScript while keeping standard navigation and search controls. It also converts the Sales Timesheet project overview to use this approach, improving consistency and maintainability for future interface customizations.
Original PR description
Currently, non-trivial client interface customisations generally *have* to go through client actions (a limited amount can use complex HTML in the form, but it's not that common). This can require a…
Currently, non-trivial client interface customisations generally *have* to go through client actions (a limited amount can use complex HTML in the form, but it's not that common). This can require a significant amount of messing around with JS code, and doesn't integrate well with the rest of the system (primarily due to the loss of the control panel / search view). This change re-uses the existing `ir.ui.view[type=qweb]` as actual views (bound to a model) to provide for flexible views rendered synchronously server-side without needing javascript development. A few dynamic behaviours are also provided (on top of bootstrap's which should be usable out of the box): * an extension of `a[type="action"]` which allows for more detailed crafting of the action (not just accessing an action by id and by model, method) * a new `a[type="toggle"]` which provides lazy loading of sub-items (currently by calling a method which returns HTML to insert after the loading anchor) * simple fold/unfold (without lazy loading) can be performed through bootstrap
Enhancements to existing features
Stock quantity views no longer force a fixed grouping on users. The grouping is still suggested by default, but users can now change it to match how they want to review inventory information.
Original PR description
Task: 1910855 Task:https://www.odoo.com/web#id=1910855&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad:https://pad.odoo.com/p/r.5328c068b66fdd16a9f4d89c8bcdd8a8 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update renames an internal website forum method to mark it as private, clarifying that it is meant for use inside the system rather than as a public extension point. The change helps maintain cleaner code boundaries with little to no direct impact on everyday users.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: Cc: @odony -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Several application and category names were renamed to make access rights easier to understand. This helps users and administrators recognize permissions more clearly when configuring roles, without changing the underlying features.
Original PR description
Rename - 1)Accounting & Finance -> Accounting 2)Document Signature -> Sign 3)After-Sales -> Helpdesk 4)Survay -> Survays 5)Purchases -> Purchase 6)Live Support -> Live Chat 7)Appraisals -> Appraisal 8)Attendance -> Attendances This commit is related to task# 1884968. 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
The Point of Sale header now uses the updated white brand logo and adjusted spacing. This keeps the POS interface visually aligned with Odoo branding and improves the header presentation for users.
Original PR description
Task: https://www.odoo.com/web?#id=1933826&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.a5e81373fcc88d775e43f216ad24d572 - updated logo - updated margin
Empty product, purchase, and sales list views now show clearer help text, making it easier for users to understand what to do next. The Sales Team invoicing target tooltip wording was also improved for better clarity.
Original PR description
Improved help messages and wordings in empty list views and the tooltip of invoicing target in Sales Team. Pad: https://pad.odoo.com/p/r.42297f1736468718ae052c0dd19d62de Task: https://www.odoo.com/web?#id=1920451&action=333&active_id=131&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
Demo products that are consumable or storable now include a small default weight, making sample inventory and sales data more realistic. The demo company address has also been corrected by separating the ZIP code and California state, improving address quality in sample records.
Original PR description
Description of the issue/feature this PR addresses: This PR is related to task id : **1915274** Current behavior before PR: - For the products which are **Consumable / Storable**, weight was 0.00kg on demo data - Company's address was not valid as the state code and zip was there in zip field i.e **CA 94134** Desired behavior after PR is merged: - weight will be 0.01 for the **Consumable / Storable** - Address will be valid i.e **zip will be 94134 and state will be California** -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Employees following expense reports will now automatically receive notifications when an expense is marked as paid. This makes it easier for users to stay informed about one of the most important expense status updates without changing their notification settings.
Original PR description
Task : https://www.odoo.com/web#id=1914987&action=327&model=project.task&view_type=form&menu_id=4720 Pad : https://pad.odoo.com/p/r.f411aceb3f86d86117fff1f20300ad84 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 lets companies mark calendar-wide bank holidays and automatically create matching employee time off entries for staff on that calendar. It also keeps future holiday entries aligned when employees are created or moved to a different working calendar, reducing manual HR administration.
Original PR description
1/ Add a boolean 'generate_hr_leaves' field on the resource.calendar.leaves. Add a button under global leaves tab. When clicking on the button, generate hr.leaves for all the employees under this calendar. 2/ If the global leave is set to generate hr.leaves, then on the create method for an employee, create the hr.leave if the global leave is planned in the future. 3/ If the calendar is changed on an employee (on the write method), unlink the hr.leaves (into the future) and regenerate them for the new calendar. 4/ rename "Global Leaves" into "Bank Holidays" in resource.calendar 5/ add a field date (date_from and date_to are computed from this new field), because a Bank holidays must be one day id=48672 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Emails sent from a purchase order now use the person currently sending the message as the sender, rather than the employee who originally created the purchase order. This makes supplier communications clearer and helps recipients know who is handling the request.
Original PR description
When an email was sent from a PO, the sender was by default the user who created the PO. The sender is now replaced by the current user. TaskID: 1934477
Required relationship fields will now default to blocking deletion instead of trying to leave an empty value, which avoids inconsistent data rules. If a required relationship is explicitly configured to be cleared on deletion, the system will reject that setup early so issues are caught during setup rather than later in use.
Original PR description
A many2one field that is required means that its column cannot contain null values, however the default ondelete policy for all m2o fields is `set null`, which contradicts `required=True`. This patch will, by default, apply the `restrict` policy to required m2o fields unless the ondelete attribute is explicitly specified. However, if the policy specified is `set null`, a ValueError will be raised whenever the registry registers the field as this makes no sense. The default ondelete policy remains unchanged for non-required m2o fields (set null)
The dashboard app has been adjusted to work better on mobile devices with a simpler single-column layout and less clutter. Pivot tables also use tighter spacing, making dashboard information easier to read and navigate on smaller screens.
Original PR description
Improve mobile UI for dashboard app: - Improve pivot integration - Hide change layout button - Force one column view layout Task ID: 1904747
Several application and category names were simplified so users can more easily understand which access rights apply to which apps. This makes labels such as Documents, Accounting, and Online Appointments clearer and more consistent across settings.
Original PR description
Module Category names - Documents management -> Documents. Accounting & Finance -> Accounting. Appointments -> Online Appointments This commit is related to task#1884968.
The empty list message for subscription products has been improved to be clearer and more helpful. This makes it easier for users to understand what to do next when no records are available, reducing confusion during setup or daily use.
Original PR description
Task: https://www.odoo.com/web?#id=1920451&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.42297f1736468718ae052c0dd19d62de
The subscription list view now starts with a suggested grouping instead of locking users into it. This lets teams adjust how they organize subscription records to better match their day-to-day workflow.
Original PR description
Task: 1910855 Task:https://www.odoo.com/web#id=1910855&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 Pad:https://pad.odoo.com/p/r.5328c068b66fdd16a9f4d89c8bcdd8a8
Resolved issues and error corrections
The manufacturing raw materials view now shows quantities in a more consistent way, especially when products use different units of measure. This reduces confusion for users comparing reserved and completed quantities during production tracking.
Original PR description
master bug - https://www.odoo.com/web#id=1923213&action=327&model=project.task&view_type=form&menu_id=4720 pad - https://pad.odoo.com/p/r.48300fd8d361e132a05c0ac34031ea52
This fix keeps Odoo server diagnostic signal handling responsive even when the main process is waiting on slow or stuck operations. It helps administrators capture troubleshooting information for stalled processes more reliably, improving supportability without changing normal business workflows.
Original PR description
Since Python only allows signal handlers on the main thread and has a big lock, some events (e.g. IO, accept(2), ...) can defer the execution of signal handlers. If the event in question gets stuck, it makes e.g. dumpstack (`kill -3`) unresponsive which is inconvenient to diagnose stuck processes. By moving the potentially blocking work to a sub-thread and idling the main thread, the event handlers should always run. Task 1913129
Replacing an image in the website editor now preserves the image's existing styling classes. This prevents layouts or visual formatting from changing unexpectedly when users update images.
Original PR description
Replacing an image in the web editor didn't preserve its classes. Now it does. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update fixes problems with how certain pages and customization views are handled after a technical view format change. It helps keep project overview screens and Studio customizations working reliably for users.
Original PR description
cf odoo/odoo#28716