Daily updates from Odoo
Thursday, July 11, 2024
14 changes · master
New functionality added to Odoo
Tasks created from paid appointment bookings now carry the appointment's planned start and end dates in the task scheduling fields. This helps teams see and plan appointment-related work directly in project tasks without relying on description text.
Original PR description
When a task is created from an SO itself generated by an appointment, the task description contains the planned dates of the appointment. This PR places those planned dates directly into the planned_date_begin and date_deadline task fields.
Steps to reproduce:
- Install the modules appointment, sales, ecommerce and project.
- Set the up-front payment of the appointment to booking fees.
- Configure the booking fees to generate a task on SO.
- Make an appointment and pay.
- The task should be generated by the correct planned dates values.
Task-3619453Stock fleet gains map and Gantt views to help teams visualize delivery batches by route and schedule. This makes planning and monitoring fleet operations easier, while related delivery connectors were adjusted to stay compatible with package handling changes.
Odoo now supports CNAE activity codes for Brazilian AvaTax transactions. Companies can set a primary activity code that is automatically used on sales orders and invoices, while users can choose another code when a transaction relates to a secondary business activity.
Original PR description
A CNAE code determines the type of activity a company is involved in. Companies can be registered to have one or more codes. Transactions are linked to these codes, depending on the exact nature of them. To support it in Odoo we add a default, primary CNAE code on the company. This is used as a default on both sale.order and account.move. In case a transaction is linked to a secondary activity sector of the company, the user can change it. The _l10n_br_is_avatax() function in the mixin was changed to a non-stored computed field so it can be used to determine visibility of the new fields in the views. The res_config_settings_views.xml file was re-formatted because its indentation was inconsistent. task-3987919
Enhancements to existing features
Field service tasks marked as under warranty will no longer connect employee timesheets to sales order lines. Tasks that only have timesheets and no billable products will also no longer generate sales orders, reducing unnecessary billing paperwork and helping keep customer charges accurate.
Original PR description
If FSM task is under warranty do not link their timesheets to sale order lines. Additionally, if there are timesheets but no products for a task, do not generate a sale order for that task. task-3933298
Users can now create a customer invoice or vendor bill directly from the bank reconciliation screen when a bank transaction relates to an unregistered business document. The new document is pre-filled with relevant details such as amount, date, and partner, reducing manual navigation and making reconciliation faster.
Original PR description
As of now, it is not possible to create a commercial move directly from the bank reconciliation widget. This commit aims to facilitate the workflow to create invoices or bills and reconcile them with…
As of now, it is not possible to create a commercial move directly from the bank reconciliation widget. This commit aims to facilitate the workflow to create invoices or bills and reconcile them with existing bank statement lines. Before this commit, if the user has a bank statement line for a unregistered commercial event, they have to: 1. Make a note of the amount, date and potentially a label 2. Navigate to Customers/Vendors > Invoices/Credit Notes/Bills/Refunds > New 3. Go back to the reconciliation widget (no breadcrumbs available) After this commit, the user will be able to create a move through a button in the bank reconciliation widget. The move is pre-filled with relevant information, such as amount, date and partner (if available). The user can return to the bank reconciliation widget through the breadcrumbs, and proceed to validate the created and added move. This commit: - Modifies behaviour of function actionSelectRecoModel to support the creation of moves. - Modifies function _js_action_select_reconcile_model to continue supporting journal entries as previously, but also the creation of moves. - Adds the function _action_redirect_to_move_button to create the relevant move and action leading to the move. - Modifies _js_action_restore_st_line_data to add the created move to the reconciliation widget. - Adds flag 'move_aml' to bank reconciliation widget line model. task-3768742
New Appraisal installations without demo data now offer guided scenarios so users can quickly understand how to create and manage appraisals. The update also improves employee deletion handling by removing related appraisals and goals where appropriate while preserving history when the employee manages goals.
Original PR description
* = hr_appraisal, hr_appraisal_survey, hr_appraisal_skills When you go on odoo.com/trial you don't have demo data. With this commit, when you install the Appraisal app without demo data, you can select a scenario to easily understand how to create an appraisal. task: 3772927
Sales and purchase orders now share common order and order line behavior, reducing duplicate maintenance and making future improvements more consistent. Purchase orders can also optionally support down payments through a new setting, while several internal field names were standardized.
Original PR description
A lot of behavior is shared between the sale order (line) and purchase order (line). To avoid having to maintain this code in parallel and allow for sharing of the overlapping code, we introduce two new mixins: 1. account.order.mixin, for sale.order and purchase.order 2. account.order.line.mixin, for sale.order.line and purchase.order.line We make use of this opportunity to also rename some of the shared fields to conform to the naming standards. Additionally, this PR adds the option to create down payments for purchase orders by moving the existing functionality from sale orders into the newly created mixins. This new function is disabled by default for purchase, but can be turned on with a new checkbox in the settings. task-3600910 Community PR: https://github.com/odoo/odoo/pull/144608 Upgrade PR: https://github.com/odoo/upgrade/pull/5627
Adds support for Kenya's 2% withholding VAT process so businesses can track VAT withheld on vendor bills. The new reporting helps identify amounts due for payment and improves VAT tax report calculations, reducing compliance risk.
Original PR description
In Kenya, some customers are assigned to withhold the VAT on vendor bills. To avoid penalties the WH Report is created, this report provides a clear view on the total VAT withheld in a period and when it should be paid. The withheld VAT information is also used to complete the calculation of the VAT due in the Tax report. task: 3703440
A new GST setting lets businesses decide whether E-invoiced lines are included when submitting GSTR-1. This gives finance teams more control over GST reporting and reduces unwanted automatic submissions.
Original PR description
Before this pr: ---------- - Lines with E-invoices are automatically included in GSTR-1, requiring no manual intervention. - No setting is available to control E-invoiced lines' inclusion in the GSTR-1 submission process. After this pr: ---------- - A setting was added in the GST module to determine if lines with E-invoices should be pushed to GSTR-1. - This setting acts as a boolean to control the inclusion of E-invoiced lines in the GSTR-1 submission process. Task Id: 3932520
The POS employee login screen has been redesigned to make signing in clearer and easier for staff. Employees can now also log in using a PIN code, helping speed up access on mobile point-of-sale devices.
Original PR description
- Design a new login screen. - Add the ability to log in with a PIN code. Task id : 3927537 Linked to: https://github.com/odoo/odoo/pull/165956
This update lets Brazilian companies using AvaTax select CNAE activity codes and more precise operation types for sales and invoices. This helps classify transactions more accurately for government tax reporting and supports companies with multiple business activities.
Original PR description
See individual commits for more details. task-3803424 task-3987919 PR notes - ~~this includes #64714, it should be merged first.~~ - this includes #65145, it should be closed if we merge this.
Resolved issues and error corrections
The Work Orders list in Manufacturing now opens normally again. A leftover setting that pointed to a removed interface component was removed, preventing a crash when users access work orders.
Original PR description
**To reproduce:** Open manufacturing -> Operations -> Work Orders **Root cause:** Since the introduction of the Shop Floor in [1], a JS class was deleted from the workorders list view, but we forgot to remove the attribute on the view itself. Since the changes in [2], this will now result in a hard crash when trying to load the view (as there no longer is a null check). This commit fixes this by removing the JS class attribute from the WO list view. [1] https://github.com/odoo/enterprise/pull/43610 [2] https://github.com/odoo/odoo/pull/171073
Moving a task in the Gantt view now preserves existing many-to-many assignments when the new target is already among them. This prevents unintended removal of related values, while still replacing assignments when the task is moved to a genuinely different value.
Original PR description
Before this commit: Consider a many2many field value = [A, B, C] From the gantt view: - move the pill to value A => value = [A]. B and C are removed. After this commit: - move the pill to value A => value still [A, B, C] as A is part of it - move the pull to value D => value = [D]. A, B and C removed. task-3852999
This update keeps several country-specific localization features working reliably on Ubuntu 24.04 by replacing deprecated software library usage. It helps avoid failures in electronic invoicing, tax reports, certificate handling, and spreadsheet exports as underlying system packages evolve.
Original PR description
As the DEFAULT_CIPHERS hardcoded list of was removed in recent versions of urllib3, let's use the system default one instead.