Thursday, December 6, 2018
28 changes · master
New functionality added to Odoo
Odoo Studio now lets users add an Activity view to an action, making it easier to track and manage follow-up tasks directly from customized apps. When Activity features or chatter are added, Studio also enables the needed activity capability on the underlying model automatically.
Original PR description
The `activity` view can now be added on an action using Studio. The mixin `mail.activity.mixin` is added on the model (using `is_mail_activity`) when adding the view but also when adding the chatter in the form view. Task 1889687
Adds a new dashboard for Live Chat Enterprise that gives teams a quicker overview of chat sessions and operator performance. This helps managers monitor support activity and make staffing or service decisions more easily.
Original PR description
Uses the channel report view from community to make a Dashboard in order to get a better and quicker vision of the sessions and operators stats. Task ID : 1895998 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Enhancements to existing features
This update simplifies Belgian payroll calculations by consolidating salary rules and using official formulas for withholding tax, which should make payroll processing clearer and faster. It also refreshes Belgian legal payroll data, updates deprecated classifications, and improves payroll localization setup for Belgium, India, Brazil, and France.
Resolved issues and error corrections
This fixes a visual issue where card body backgrounds could cover rounded card borders. Users will see cleaner, consistent card styling across the web interface, matching the intended design.
Original PR description
Again (and definitely?) completes https://github.com/odoo/odoo/pull/29253 As the mentioned PR forces a background on card bodies, that background went over the card border corners as those are rounded. This commit fixes that by adding the correct border radius on card bodies, the same way bootstrap does it by default for card headers and card footers.
Original PR description
1/ hr_contract_salary: Remove hr.contract.advantage.template model It was a failed attempt to make somethig generic. Sometimes we are not the only ones to choose. Closes #28727 2/ hr_payroll:…
1/ hr_contract_salary: Remove hr.contract.advantage.template model
It was a failed attempt to make somethig generic. Sometimes we are not the only ones to choose.
Closes #28727
2/ hr_payroll: Retrieve localdict default value from a method
3/ l10n_be_hr_payroll: Merge both miscellaneous onss rules
This is useless to have 2 separate rules.
4/ l10n_be_hr_payroll: Move withholding tax reductions into the same rule
Compute the 'precompte professionnel' directly instead of having more than
10 rules just for that.
5/ l10n_be_hr_payroll: Update 'Bonus à l'emploi' up to 01/09/2018
See: https://www.socialsecurity.be/employer/instructions/dmfa/fr/latest/instructions/deductions/workers_reductions/workbonus.html
6/ l10n_be_hr_payroll: Remove duplicated salary rule
This rule is a reduction for the ONSS contribution, not a reduction for
the précompte professionnel.
The reduction for the ONSS contribution is already implemented.
7/ l10n_be_hr_payroll: Rename C.P. 218 into CP 200
The CP 218 is deprecated since 2015. See https://www.jesuisemployeur.be/banque-d-info/actualites/la-cp-218-devient-la-cp-200-qu-en-est-il-des-entreprises-qui-relevent-actuellement-des-cp-100-et-200
8/ l10n_be_hr_payroll: Use the magic formula for the PP computation
The 'Précompte Professionel' can be deducted from a formula if you're
patient enough to read https://finances.belgium.be/sites/default/files/downloads/700-formule-cle-20180101.pdf
This commit remove all the hr.salary.rules from the official tables
and use the formula instead. This should improve the performances too.
9/ hr_payroll: Show only localizations on res_config
10/ hr_payroll: Install the correct module when enabling accounting
Closes #29207
11/ l10n_br_hr_payroll_account: Remove useless dependency
12/ l10n_in_hr_payroll: Add dependency to l10n_in
13/ l10n_be_hr_payroll: Add dependency to l10n_be
TaskID: 1915125The forum has been refreshed with a cleaner, more modern interface and now focuses posting on question-based discussions. Moderators also gain a bulk spam moderation tool, helping communities manage inappropriate content faster and maintain better quality conversations.
Original PR description
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 website and portal default background now uses a very light gray instead of pure white, helping white content cards stand out more clearly. Portal styling has also been aligned so its colors behave correctly with this new background, improving visual consistency for users.
Original PR description
Use a very very very light gray as body background color for the website so that default white cards have some contrast with the body. Also adapt the portal system to use the portal colors when the body bg color is equal to that very very very light gray (while it was compared to $white before).
The website social sharing popover now keeps its icons on a single row, preventing awkward wrapping on smaller buttons. The popover was also refreshed with clearer standard icons and each social platform’s own colors, improving visual consistency and usability.
Original PR description
Before this commit, the social media popover (used in forum but available everywhere) may break over multiple rows if used on a relative positioned small button. This however never occurred in standard <= 12.0 so we will consider this not a bug fix. This will however occur with the upcoming forum refactoring, so we needed a fix for master. This commit forces the social icons on one row and take the opportunity to refactor the template to make a simpler and more beautiful popover by using conventional icons and social media own colors.
The survey examples shown in demo environments were refreshed to better match realistic business scenarios. Recruitment survey examples were simplified and moved into demo-only data, while the main survey demo now focuses on ecommerce feedback instead of Odoo product usage.
Original PR description
Purpose of this merge is to update the demo data for surveys used in various applications, notably the base one in survey. It impacts survey (feedback survey to make coherent with odoo demo data and remove references to odoo as a product in odoo), hr_recruitment_survey (sample recruitment survey moved from data to demo and simplified). This merge is linked to task ID 1912228 and PR #29303.
Partner autocomplete now informs users when the service cannot return suggestions because available credits have been exhausted. This makes the limitation clear at the point of use, reducing confusion and helping users take action to restore access.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The reconciliation screen now warns users when a bank statement line appears to match a sales order that is sent or waiting to be invoiced. This helps staff confirm the sales order and create the invoice first, so the customer prepayment can be reconciled correctly afterward.
Original PR description
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
Product and product variant screens were cleaned up with clearer labels and layout improvements. Sales, purchase, and manufacturing shortcuts now show more accurate information and open the expected analysis views, while archiving a single remaining active variant also archives its related product template.
Original PR description
Several last cleaning in the product and product variant form : - various labelling and design improvements - sales, purchased and manufactured stat button (number of sales was incorrect and click will now open normal sales analysis) - now archiving related product.template if there is only one active product.product Task-1880039 closes #28633 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website and portal pop-ups now handle long content more smoothly by scrolling inside the pop-up instead of moving the whole page. This makes forms, dialogs, and other pop-ups easier for visitors to use on smaller screens or when content is lengthy.
Original PR description
Odoo overrides the modal behavior to make the modal-body scroll instead of the <body/> when the modal would overflow the window. This was however only done for "technical" modals i.e. the ones of the Odoo UI, not the website/portal ones which are displayed to visitors. This commit makes the behavior active for all bootstrap modals wherever bootstrap is used.
CRM Reveal has been made easier to configure with clearer labels, better field ordering, and additional filtering options. Users can now refine lead generation rules by location/state, contact type, and company size, helping teams target better prospects with less setup friction.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The HR organization chart now supports recursive reporting structures, so an employee can appear in more than one place when real-world management relationships overlap. This makes charts more accurate for complex organizations, while improving how expanded hierarchy views show subordinate employees.
Original PR description
Purpose ======= Allow recursive hierarchy (an employee can be its own manager; e.g. the CEO is manager of everyone but is also member of a department managed by the CTO who is himself managed by the CEO). This means an employee might appear in multiple place in the organisational chart. The button to see more of the hierarchy in the organisation chart opens all employees under the N+2 of the current employee being displayed but does not open the view of the N+2. It onl Specification ============= Add 'subordinates_ids' computed field on 'hr.employee' to get all subordinates (direct and indirect). Task 1251 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adds checks to ensure employee benefits are handled correctly in payroll calculations. It helps reduce the risk of payroll errors by verifying multi-day benefits are split properly and reflected in payslips.
Original PR description
Some use cases are not tested. Add a test for validating a multiple day benefit: it should be split by day Add tests for payslip generation based on benefits: it should generate corresponding work_days_lines - test with benefit of type leave - test with benefit non leave Task #1915694 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Custom business objects can now be marked as supporting activities more reliably, including those created through Studio. This prevents crashes when showing activity reminders for custom objects and makes empty activity screens clearer for users.
Live chat reporting now includes more useful indicators such as unanswered chats, activity days, visitor country, operator assignment history, and per-operator ratings. Support teams can use nicknames instead of full names in live chat, improving privacy while keeping dashboards and statistics more accurate.
Original PR description
**Adds indicators in channel report** in order to use them in the new enterprise livechat dashboard. Those indicator are added here to re-use directly the channel report view. It allows the users to use also those new indicators in the existing reports. **Adds optional livechat_username :** To avoid to know the complete name of the support members (for privacy purpose). **Adds livechat_operator_id on the mail.channel :** we ensure that, even if the operator of the discussion is removed from the operators of the livechat.channel, we can still know who was the operator, at the time of the discussion. In that way, we can still keep the history of the former assigned operator. **Adds more precision about ratings per operators** that worked on the last 100 feedbacks for a specific channel **on the channel stat webpage**. Also, uses anonymous name only if visitor is anonymous. If visitor is logged in, we use directly his partner.name. Task ID : 1895998
Sales team configuration has been simplified by removing confusing options and obsolete dashboard settings. Teams can now support sales, CRM, point of sale, and website-related activities more flexibly, making setup clearer for business users and reducing maintenance complexity.
Original PR description
Reason: *Sales team configuration is too complex with fields you don't understand and that bring no added value *Remove the team type, every team should be able to handle a POS or a website for example Contains: *Removal of the team_type, use_quotations, use_leads fields *Removal of the graph configuration fields *Adapting the filters that were based on the team_type *Clear distinction between the team dashboard behavior in crm from the one in sales *Cleansing of now dead code due to the removal of the previously mentionned fields
The Lunch app now supports alerts that can show messages to users during ordering. The ordering wizard has been simplified for a cleaner experience, and toppings are now organized by product category instead of supplier to make setup and selection more intuitive.
Original PR description
We want to be able to use alerts in order to display a message to the users. We want to have a minimal display in the wizard. We want to link the toppings to the categories instead of the suppliers.
Users are now notified when partner autocomplete cannot continue because there are not enough credits. This makes the situation clearer and helps users understand why company or contact suggestions are unavailable.
Original PR description
Show notification when not enough credits for partner_autocomplete -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The VoIP calling component was updated to work better with current web browsers, resolving issues where audio streams could fail to open. The change should improve call reliability and also makes it easier for support teams to diagnose SIP call traces when needed.
Original PR description
Before this commit, the version of SIP JS used was 0.7.3, which was not fully compatible with last versions of web browsers. Which results in multiple errors with audio media stream (the streams were not opened, etc). With the version 0.10.0, these errors are solved. In addition, this commit adds the possibility to debug the SIP trace without changing the JS code.
Updated the appraisal module’s tests to stay aligned with refreshed survey demo data. This helps ensure appraisal workflows continue to be validated correctly when demo survey content changes.
Original PR description
This commit is linked to task ID 1912228.
This update simplifies Belgian payroll calculations by consolidating overlapping rules and using official formulas for withholding tax. It also refreshes Belgian payroll data, removes obsolete salary setup logic, and improves module configuration so payroll and accounting dependencies are installed more reliably.
Original PR description
1/ hr_contract_salary: Remove hr.contract.advantage.template model It was a failed attempt to make somethig generic. Sometimes we are not the only ones to choose. Closes #28727 2/ hr_payroll:…
1/ hr_contract_salary: Remove hr.contract.advantage.template model
It was a failed attempt to make somethig generic. Sometimes we are not the only ones to choose.
Closes #28727
2/ hr_payroll: Retrieve localdict default value from a method
3/ l10n_be_hr_payroll: Merge both miscellaneous onss rules
This is useless to have 2 separate rules.
4/ l10n_be_hr_payroll: Move withholding tax reductions into the same rule
Compute the 'precompte professionnel' directly instead of having more than
10 rules just for that.
5/ l10n_be_hr_payroll: Update 'Bonus à l'emploi' up to 01/09/2018
See: https://www.socialsecurity.be/employer/instructions/dmfa/fr/latest/instructions/deductions/workers_reductions/workbonus.html
6/ l10n_be_hr_payroll: Remove duplicated salary rule
This rule is a reduction for the ONSS contribution, not a reduction for
the précompte professionnel.
The reduction for the ONSS contribution is already implemented.
7/ l10n_be_hr_payroll: Rename C.P. 218 into CP 200
The CP 218 is deprecated since 2015. See https://www.jesuisemployeur.be/banque-d-info/actualites/la-cp-218-devient-la-cp-200-qu-en-est-il-des-entreprises-qui-relevent-actuellement-des-cp-100-et-200
8/ l10n_be_hr_payroll: Use the magic formula for the PP computation
The 'Précompte Professionel' can be deducted from a formula if you're
patient enough to read https://finances.belgium.be/sites/default/files/downloads/700-formule-cle-20180101.pdf
This commit remove all the hr.salary.rules from the official tables
and use the formula instead. This should improve the performances too.
9/ hr_payroll: Show only localizations on res_config
10/ hr_payroll: Install the correct module when enabling accounting
Closes #29207
11/ l10n_br_hr_payroll_account: Remove useless dependency
12/ l10n_in_hr_payroll: Add dependency to l10n_in
13/ l10n_be_hr_payroll: Add dependency to l10n_be
TaskID: 1915125Sales team settings are streamlined by removing confusing options for team type, leads, quotations, and dashboard graph configuration. Teams can now be used across sales channels more flexibly, with dashboards generated automatically from CRM or sales activity.
Original PR description
Task: https://www.odoo.com/web#id=1830105&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720 Purpose : Simplify sales team config by removing dashboard configuration and team_type, use_quotations, use_leads fields. Anyy salesteam should be usable in any channel, allowing to group several channels into one team. Behavior before PR: Users could configure the team dashboard graphs, the type of the team or wether or not the team should use leads or/and quotations Behavior after PR: No more dashboard graph configuration, teams who manage a pipeline will have a graph based on "crm.lead" which will display the number of opportunities/leads per week for the last month. Teams who don't manage a pipeline will have a graph based on sale.report which will display the total of SO (+POS Order if the team is in charge of a point of sale)
This fix makes gray background and text styling available consistently across Odoo’s web interface instead of only through the website editor styling. It helps ensure muted text and gray card sections display with the intended colors, improving visual consistency for users.
Original PR description
* web_editor Before this commit, the web_editor app defined gray utilities: bg-* and text-* classes for gray colors (on top of theme colors). Those are now defined for all bootstrap (note that this was already the case as the web_editor file was put in the backend and in the frontend). The difference is that now the gray utilities are defined just after the standard bootstrap. This allows to complete and fix https://github.com/odoo/odoo/pull/29253/files as text-muted in gray card bodies were not using the correct color without this (see code comments for details).
This update fixes a small issue in the Lunch HR app that could cause the “Available at current location” filter to fail during testing or use. It also removes outdated internal compatibility code, helping keep the app aligned with the current platform.
Original PR description
Python 2 helpers were removed in 758382b3a. Also, fix a typo in a search domain. This issue was found during the test_click_everywhere test when clicking on filter " Available at current location ".
This fix prevents line charts from failing when they encounter missing label values, especially when multiple groupings are used or users switch from bar charts to line charts. Business users get a more reliable graph view instead of an error traceback when opening reports.
Original PR description
Description of the issue/feature this PR addresses: Issue-Link: https://www.odoo.com/web#id=1882328&action=333&active_id=1278&model=project.task&view_type=form&menu_id=4720 Pad-ID: https://pad.odoo.com/p/r.d6a3403499a66e5503978336375515ae Before this commit: While the user was opening first-time line chart graph, at that time undefined label values were not being converted into undefined string due to misplacing code. So it was giving traceback error. After this commit: The code has been moved to the proper place. Issue-ID: 1882328 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 product form now shows subscription options for every product type, not only selected ones. This helps teams configure subscription-related products more consistently and reduces confusion when setting up offerings.
Original PR description
Purpose : make subscription visible for all product types in product form Task-1880039 closes #3069