Daily updates from Odoo
Wednesday, September 25, 2024
8 changes · master
Enhancements to existing features
Studio approval workflows now let authorized users revoke approvals made at lower notification levels, giving teams better control over multi-step approvals. The update also fixes a mobile debug crash in the approval dropdown and refreshes records after approval actions so related discussions stay current.
New Odoo databases now show polished sample dashboards instead of blank charts and tables when there is no business data yet. This helps users understand the value and expected layout of dashboard apps during onboarding, before real records are created.
Original PR description
Prior to this commit, when an Odoo database had no records, the dashboards were empty and ugly. This commit alleviates this problem by introducing dashboards with dummy data displayed in the background with low opacity when there are no records for the main model that is supposed to be displayed in the main dashboard sheet. Task: 3947773 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Colombian electronic invoice emails now include a ZIP file with both the PDF and the legally required XML document. This helps businesses comply with DIAN requirements by including the invoice details and the official DIAN status response in the emailed document package.
Original PR description
Due to legal reasons, we need to send a zip containing the PDF and the xml. The xml is an UBL `AttachedDocument` containing both the initial xml representing the invoice and the `ApplicationResponse` returned when calling the GetStatus webservice of DIAN. The `ApplicationResponse` is an xml representing the state of the invoice on the DIAN server. task-4133688
Payroll work entry types can now be linked to a specific country, helping companies manage local payroll rules more accurately. This also improves multi-company setups by showing work entry types based on each company's country and updates localized payroll data accordingly.
Original PR description
added country field in hr work entry type added multi company rule for work entry type based on countries added country for every l10n with work entry type task-3978261
Radio button options added to documents in Odoo Sign now appear immediately instead of waiting for the next periodic refresh. This makes template editing feel faster and reduces delays for users preparing documents for signature.
Original PR description
Before this commit: rendering of new radio items was slow. This happened due to the `refreshSignItems` being called each 2 seconds normally. which is responsible for making the sign items visible. In this commit: `refreshSignItems` is called after adding new radio items. Task: 4208037
Resolved issues and error corrections
WhatsApp conversations in Discuss now reactivate as soon as a new message arrives from a WhatsApp contact. This prevents teams from missing the first incoming message on previously deactivated channels and keeps customer follow-up timely.
Original PR description
This commit [1] introduces a bug where WA channel doesn't get re-activated after first new message from WA Partner. Steps to reproduce: 1. Keep a de-activated channel open in Discuss. 2. Send a message from WA Partner. 3. Channel doesn't get activated. 4. Send another message. 5. Channel gets activated. This commit fixes the issue. [1]: 4eafd01620b48cd79c4fd319237003d8d39cb217
Budget committed amounts now stay accurate when a purchase order has a draft vendor bill. Draft bills no longer reduce the committed amount until they are posted, preventing budgets from appearing under-committed too early.
Original PR description
When calculating the commited amount of a budget, if a draft bill is available for a PO, the commited amount will be 0. This is due to the fact that qty_invoiced is set even when the bill is not posted. To ensure that the commited amount stays consistent, we will only take into account the qty_invoiced when the related bill is posted.
Odoo Studio now preserves compatibility for older Kanban views after a template naming change. This prevents legacy Kanban menus from breaking, helping users continue editing and using existing views reliably.
Original PR description
Commit [1] renamed `kanban-card` and `kanban-menu` template names into `card` and `menu`. This was meant to be done on kanban views using the new API (i.e. defining a `kanban-card` template instead of `kanban-box`), to keep backward compatibility. However, the renaming for the menu impacted both old and new API kanban views (as they both share the same template name), thus breaking legacy ones. This commit fixes the issue. [1] odoo/odoo@233f03da5ae9c269618e6e28c775a123c0afca79