Wednesday, December 9, 2020
26 changes · master
New functionality added to Odoo
Calendar events now include a link to join a Jitsi video call, making online meetings easier to access directly from the event. The update also improves calendar popovers so longer event details remain readable instead of overlapping buttons.
Original PR description
This commit adds a link to each calendar.event to join a video call hosted on Jitsi. TaskID: 2367543 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
Enhancements to existing features
Event organizers can now automatically send emails when an event moves into a specific stage, such as notifying attendees when an event is cancelled. The event email list also shows clearer delivery status, including scheduled, running, and sent, with contacted attendee counts for better follow-up visibility.
Original PR description
Purpose ======= Be able to send event mail when we move an event to another stage. e.g.: Sending "Sorry for canceling the event" when we move the event in the stage "Canceled". Show the state of the event mails (scheduled, running and sent). Specifications ============== If we specify "On stage update" on the event mail, the mail is sent scheduled when we move the event into the specified stage. If we specify a interval, the event mail will be sent "X times" after moving the event into the specified stage. Reset the `trigger_stage_id` if the interval type is not "stage_update". Task 2127615 PR #45200 See odoo/upgrade/pull/858
Resolved issues and error corrections
This fixes an intermittent automated test issue where the website editor cleanup could finish after the test had already ended. The change helps keep development validation stable and reduces false failures in the build process.
Original PR description
Fix an error in the QUnit tests that would sometimes pop up when the `editor.stop()` is a bit slow and the QUnit test case is over before the editor html is properly cleaned.
**Bug report :**
[XDO] Undeterministic runbot error: https://runbot.odoo.com/runbot/build/5082722 Body still contains undesirable elements: jw-follow-range
╰─[DMO] This was already reported and already marked as fixed. However, it seems this bug still appears as this build is from master today (Nov 19). If I remember correctly, the fix was to add an await in the test for the closing of the editor. However, I was surprised that this await wasn't needed in the other editor tests. Maybe this is why the bug is till there ? That it is another test that exhibits the same shortcoming ?
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prMiscellaneous changes
Fix a bug introduced by #62032 and which causing the creation of unwanted additional SO line with multistep delivery. Forward-Port-Of: odoo/odoo#63041
Original PR description
Fix a bug introduced by #62032 and which causing the creation of unwanted additional SO line with multistep delivery. Forward-Port-Of: odoo/odoo#63041
Odoo can now pass a setting that prevents users from selecting multiple related records when opening a sub-record dialog. This helps guide users through workflows where related items, such as marketing automation activities, need to be created and linked one at a time.
Original PR description
…option The open_one2many_record trigger method now takes the disable_multiple_selection option in parameter to pass it to the FormViewDialog constructor. Task ID : 2087993 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
System administrators see a new option in list-view column menus that explains they can add custom fields with Odoo Studio. If Studio is available it opens directly; otherwise the menu promotes Studio and supports installation with confirmation.
Original PR description
This commit adds a "Add Custom Field" button on optional columns dropdown list The goal is to let the user now he can add custom fields to a listview with Odoo Studio, and to promote Odoo Studio when…
This commit adds a "Add Custom Field" button on optional columns dropdown list
The goal is to let the user now he can add custom fields to a listview with Odoo Studio,
and to promote Odoo Studio when not installed.
Task: 2392303
**Description of the issue/feature this PR addresses:**
The purpose of this task is to:
let the user know that he can add custom fields to a listview with studio
promote studio when it is not installed
**Current behavior before PR:**
None
**Desired behavior after PR is merged:**
Add a new 'add custom field' button at the bottom of the listview optional fields dropdown (i.e. o_optional_columns_dropdown)
mockup https://drive.google.com/file/d/1o7xGAmxKuE77dqkdteh10v5EAIbHquzj/view?usp=sharing
prefix the button with a fa-plus icon
- if there is no optional field in the view, display the dropdown with the 'add custom field' button only
This new button is only visible to res.users in base.group_system
When clicking on the 'add custom field' button
- if studio is installed, open studio on the current view
- if studio is not installed, the 'add custom field' item unfolds on the studio
- mockup https://drive.google.com/file/d/1c4cpMmZWlW-IrbXmcH1EaSe0aUnmdHOU/view?usp=sharing
- it 'unfolds' in the same way the 'add custom group' item of the searchview filter unfolds
- video https://drive.google.com/file/d/1VxRZWrX9aeqjVI1XvqnZAxSaULd1-Rt1/view
- the 'install odoo studio' button directly installs studio
- it does not redirect to the ir.module.module formview of the studio app
- you can should reuse the action, image, and link of the existing 'studio' banner https://drive.google.com/file/d/1HWtPiGM8C1LE-nYs9Gt2PObxVr86h9Fr/view?usp=sharing
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThe Time Off calendar now defaults to a yearly view that fits on one screen, making planning easier without missing information. Weekends and public holidays are shaded, pending time off is visually distinct, and calendar filtering and cancellation issues are fixed for a smoother experience.
Original PR description
A new calendar view has been added, the "year" view. Some modifications should be done on this view, more specially in "Time Off" application. Problems were the fact that it was hard to see if a time…
A new calendar view has been added, the "year" view. Some modifications should be done on this view, more specially in "Time Off" application. Problems were the fact that it was hard to see if a time off has been approved or not or week-ends & public holidays that are not grey. Another goal with Year view is to display it in a single page without scroll bar. Before this commit, a scrollbar was displayed on the right of the screen. This results in some data wasn't displayed on the screen. Now, the year view is scalled to the browser. That means that all informations are now on the screen (without scrollbar). This commit changes year calendar in Time Off module. More specially, this commit: - Changes default calendar in personal dashboard to "year" - Gray week-ends & public holiday (based on the worker's calendar) - Hatches non-approved time off - Removed a calendar view from My Time Off Requests - Fix a "cancel" button that doesn't work - Add a new view that is displayed when there is no filter to show on the filter view for calendars "is_hatched" is used to hatch date under specific conditions The goal was that it was not possible to display some information differently depending on a variable. Now, if a variable named "is_hatched" is set to true and passed to the calendar view, the specific date is hatched. This PR also fixes a bug in calendar view: If a filter has a space in his title, we were not able to collapse it. Task id #[2318645](https://www.odoo.com/web#action=333&active_id=1251&cids=1&id=2318645&menu_id=4720&model=project.task&view_type=form) Task id #[2317525](https://www.odoo.com/web#action=333&active_id=1251&cids=1&id=2317525&menu_id=4720&model=project.task&view_type=form) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Manufacturing and inventory settings now include an option to enable Quality Worksheets when quality control is available. This makes it easier for businesses to activate worksheet-based quality checks without manual module installation.
Original PR description
Add a checkbox to install quality_worksheet in mrp setting, it will be shown when quality_control is installed. Task 2281266 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The customizable worksheet capability previously tied to field service reports is now available as a reusable foundation for other business processes. Quality checks and manufacturing work orders can now use customizable worksheets, while field service reports continue to work with the updated shared structure and improved company filtering.
Original PR description
1. Make the worksheet part of current industry_fsm_report an independent module to be used by other modules 2. Add new module quality_worksheet and quality_worksheet_mrp_workorder. More detail in each commits.
Belgian payroll now deducts European leave advances from the following double holiday pay, including carry-over when the prior holiday pay was not enough. The update also improves holiday pay prorating for newer employees and ensures related Belgian social security declarations use the correct codes and positive amounts.
Original PR description
When a employee begins his first job, this worker can have some european leaves after having worked 3 months in a company. This european leaves is in fact a advance on the double holiday pay in the…
When a employee begins his first job, this worker can have some european leaves after having worked 3 months in a company. This european leaves is in fact a advance on the double holiday pay in the next year. This PR adds this deduction in the double holiday pay. To do this, we check that the employee has taken some european leaves in previous year to reduce the amount of the double holiday. However, if the amount of the double holiday pay is not sufficient, the deduction is made in the following double holiday pay. Thus, we need to check if there are some european leaves 2 years ago (if there aren't a deduction in double holiday pay last year) **Content of the PR:** - Set *dmfa_code* for the european leaves to 14 for the DMFA. - Add belgian company in the european leave type to correctly test the feature. - Improve the basic salary in the double holiday pay. Because, if an employee just begins at the mid of the previous year, we need to compute the correct paid amount for the double holiday paid. That is, in this case the half of his monthly salary. - Add sum_worked_days method, to search and sum the amount of the the european leaves in hr.payslip.worked.days in 2 previous years (or last year if there is a deduction in double holiday pay in last year). - Add rule for the european leaves deduction in *hr_payroll_structure_cp200_double_holiday*. - fix a negative total for NetOwedAmount tag in DMFA - Declare the double holiday pay with european leaves deduction (if there is a deduction) in DMFA (Unfortunately, not sure for the structure, so it can be changed in another task). TaskId: 2337215
Planning managers can now filter schedules to quickly see employees who are on time off. This makes it easier to understand staffing availability and review affected planning slots without manually checking absences.
Original PR description
[ADD] planning_holidays: added new employee time off filter in planning While the planning manager can easily know how much planning employee is on time off. The 'Employees on Time Off' filter will appear only on the planning manager. Task-Id: 2328868
Marketing automation campaigns now save automatically when a user starts creating a related child activity. This removes an extra manual save step and makes it easier to build linked activity flows one activity at a time.
Original PR description
Before If you wanted to create a child activity you had to save the campaign before creating a new activity. After this commit the save will be triggered before creating a new activity Task ID : 2087993
Users can now start a new rental quotation from an opportunity even when no customer is assigned yet. Instead of showing an error, the system opens a wizard so the customer can be selected or created during the rental flow, reducing interruption for sales teams.
Original PR description
PURPOSE In sale_renting_crm when i click on new rental button it's shows error. so i added wizard Current When i click on rental button it's shows user error To be If I click on New Rental, I am shown this modal and can do the same as for a Quotation. when you click on new rental button it's open wizard for rental customer. PR **Task** 2360863 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Planning now considers how much time a person is allocated to each overlapping shift, not just whether shift times overlap. This reduces false conflict warnings when part-time or lower-percentage allocations still fit within the available working time.
Original PR description
Before this commit, the conflicts were only detected if the start_datetime and end_datetime of planning slots were overlapping.
This commit introduce a criterion based on the allocated time. If people are working at a lower percentage and if the total number of allocated hours in overlapping shifts is not larger than the available time, no conflict is displayed.
Example:
shift 1 : 8 am to 12 am, 90% 4h available and 3h36 of effective work.
Shift 2 : 11 am to 15 pm, 90% 4h available and 3h36 effective.
We are trying to work 7h12 for a 7h period, we rise a conflict.
If shift 2 allocated time is 80%, we are working 3h12 over the 11-15 period.
The total is 6h48 for a 7h total, no conflict is displayed.
taskid : 2310218This update fixes and stabilizes tests across several country-specific accounting and e-invoicing features. It helps ensure localization features work reliably regardless of demo data or currency settings, reducing risk in compliance-related workflows.
Steps to reproduce: - Create a customer invoice I for a total of 1000€ - Confirm I - Register a payment Bug: The default amout in the wizard was 0€ instead of 1000€ The default amount is computed by _get_wizard_values_from_batch with the sum of amount_residual of all the lines. But in function _compute_amount_residual, it checked line.id and this case, all the lines were in cache with NewId opw:2413064 Forward-Port-Of: odoo/odoo#63023
Original PR description
Steps to reproduce: - Create a customer invoice I for a total of 1000€ - Confirm I - Register a payment Bug: The default amout in the wizard was 0€ instead of 1000€ The default amount is computed by _get_wizard_values_from_batch with the sum of amount_residual of all the lines. But in function _compute_amount_residual, it checked line.id and this case, all the lines were in cache with NewId opw:2413064 Forward-Port-Of: odoo/odoo#63023
Create a coupon code use it in a quote A cancel the quote A use it in a quote B confirm B go back to quote A set to quotation confirm Result: you used the coupon code twice opw-2410684 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 Forward-Port-Of: odoo/odoo#62916 Forward-Port-Of: odoo/odoo#62767
Original PR description
Create a coupon code use it in a quote A cancel the quote A use it in a quote B confirm B go back to quote A set to quotation confirm Result: you used the coupon code twice opw-2410684 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 Forward-Port-Of: odoo/odoo#62916 Forward-Port-Of: odoo/odoo#62767
…plate id changes Fine-tuning of 0106fcd59c8c97b1a1e39a263f305650978c0606 Have a SO with a partner in another language Apply a quote template to a SO Customize the portal view to show website_description of a product on the template Translate it Show the SO on the portal Before this commit, the description of the product was not translated This was because the field was not included in the onchange of template_id causing that field to never have changed, that is, it kept the descr
Original PR description
…plate id changes Fine-tuning of 0106fcd59c8c97b1a1e39a263f305650978c0606 Have a SO with a partner in another language Apply a quote template to a SO Customize the portal view to show website_description of a product on the template Translate it Show the SO on the portal Before this commit, the description of the product was not translated This was because the field was not included in the onchange of template_id causing that field to never have changed, that is, it kept the description done injected with the first write After this commit, the description is changed according to the partner's lang opw-2366738 Forward-Port-Of: odoo/odoo#62999
Before this commit: - If the user did not have sufficient rights (only group_hr_timesheet_user), then the update of the SOL on the task did not trigger an update on all not invoiced timesheets but only on the one of the user. - An exception was raised when updating the sale_line_id of the sale_line_employee_ids of a project as it tries to update the related employees project timesheets (which can be different from the current user). After this co
Original PR description
Before this commit:
- If the user did not have sufficient rights (only group_hr_timesheet_user),
then the update of the SOL on the task did not trigger an update on all
not invoiced timesheets but only on the one of the user.
- An exception was raised when updating the sale_line_id of the
sale_line_employee_ids of a project as it tries to update
the related employees project timesheets (which can be different
from the current user).
After this commit:
- All the not invoiced timesheets of the task are updated when changing
the task SOL.
- The exception will not be thrown as the write opperation is made
with sudo rights.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#62678Bug === When we start the Event tour, if we go outside of Event during the tour we might see the tour bubble in the other application. It should be visible only in Event. Task 2381898 Forward-Port-Of: odoo/odoo#62736
Original PR description
Bug === When we start the Event tour, if we go outside of Event during the tour we might see the tour bubble in the other application. It should be visible only in Event. Task 2381898 Forward-Port-Of: odoo/odoo#62736
STEPS: * install pos_cache in clean database without demo * open pos * click OK on popup "Would you like to load demo data" BEFORE: error, products are not loaded even after refreshing AFTER: no errors, products are loaded 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 Forward-Port-Of: odoo/odoo#62955
Original PR description
STEPS: * install pos_cache in clean database without demo * open pos * click OK on popup "Would you like to load demo data" BEFORE: error, products are not loaded even after refreshing AFTER: no errors, products are loaded 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 Forward-Port-Of: odoo/odoo#62955
This case shouldn't appear in a normal usage of the statement lines because there is no way to cancel them. However, this case should be supported in 14.0 due to a choice we made for the migration. Indeed, we don't want to create draft journal entries in a locked period during the migration but the statement lines that are not reconciled in a locked period shouldn't be deleted in order to keep the statement starting/ending balance consistency. So, the journal entries created in a locked perio
Original PR description
This case shouldn't appear in a normal usage of the statement lines because there is no way to cancel them. However, this case should be supported in 14.0 due to a choice we made for the migration. Indeed, we don't want to create draft journal entries in a locked period during the migration but the statement lines that are not reconciled in a locked period shouldn't be deleted in order to keep the statement starting/ending balance consistency. So, the journal entries created in a locked period for not reconciled statement lines are cancelled and then, we don't want to block the locking of any period because of that. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#63097
Remove traceback by checking if the label is undefined or not TaskID: 2352438 Forward-Port-Of: odoo/enterprise#14302
Original PR description
Remove traceback by checking if the label is undefined or not TaskID: 2352438 Forward-Port-Of: odoo/enterprise#14302
… set. Before, if no bank was set in the invoice (e. g. cash payment), the generic RfCEmisorCtaOrd for foreign countries was set, implying that a financial institution is involved. It should simply not be set. See Task 2363916 Forward-Port-Of: odoo/enterprise#15200
Original PR description
… set. Before, if no bank was set in the invoice (e. g. cash payment), the generic RfCEmisorCtaOrd for foreign countries was set, implying that a financial institution is involved. It should simply not be set. See Task 2363916 Forward-Port-Of: odoo/enterprise#15200
When the user tried to "Add a line" (Alt+i), the timer for the project with key "i" was also increased. This commit ensures the project's timer are not incremented when the Alt key is pressed. TaskID: 2373824 Forward-Port-Of: odoo/enterprise#14520
Original PR description
When the user tried to "Add a line" (Alt+i), the timer for the project with key "i" was also increased. This commit ensures the project's timer are not incremented when the Alt key is pressed. TaskID: 2373824 Forward-Port-Of: odoo/enterprise#14520
Sometimes, importing a Coda file fails because the bank add comments on a bank statement by adding a line with an amount at zero. With this change, the statement lines will have an additional filter, which will remove lines with an amount at zero before creating the bank statement in odoo. task id #2403369 Forward-Port-Of: odoo/enterprise#15057
Original PR description
Sometimes, importing a Coda file fails because the bank add comments on a bank statement by adding a line with an amount at zero. With this change, the statement lines will have an additional filter, which will remove lines with an amount at zero before creating the bank statement in odoo. task id #2403369 Forward-Port-Of: odoo/enterprise#15057