Monday, October 30, 2023
7 changes · master
Enhancements to existing features
When an employee is archived, their contract details are now hidden from the contract form. This helps prevent users from viewing or relying on contract information for employees who are no longer active.
Original PR description
In this PR we Implemented conditional logic for contract form 1. if we archive the Employee then that contract details are also blank and no more available after remove active employee filter on contract form. Task-3522177
The Tax Cloud configuration option is no longer shown to all users by default. It now appears only when the U.S. localization or Tax Cloud module is installed, reducing confusion for businesses that do not use this feature.
Original PR description
Before this PR the setting of tax cloud was displayed for everyone which wasn't something that some clients wanted. Now, the setting only appears when you install l10n_us or account_taxcloud directly. The settings is by default falsy because we have removed the auto install in the manifest of account_taxcloud. upgrade:https://github.com/odoo/upgrade/pull/5315 enterprise: https://github.com/odoo/enterprise/pull/47663 task: 3475032 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Project task lists now allow users to edit the related sales order item when all selected tasks belong to the same customer. This makes sales-project updates easier while preventing accidental changes across tasks for different customers.
Original PR description
…tner Description of the issue: Before this commit sale order item field was not editable its readonly in tree view Imp: After this commit sale order item field will be editable if all selected tasks have same partner. task-3374663
Report menu entries are now managed more consistently when users create, archive, or delete reports. This helps prevent duplicate menus and keeps the interface up to date automatically, reducing confusion for users.
Original PR description
This commit adds the following improvements: - Automatic reload after manual menuitem creation. - A UserError is raised when trying to create a duplicate menuitem. - Any existing menuitem is removed when deleting a report, or archived when archiving the report. task-3422314
Gantt progress bars now show more precise time values, such as 4h30 instead of rounding down to 4h. The display is also cleaner, using formats like 4h / 38h, making workload progress easier to read at a glance.
Original PR description
**=mrp_workorder, project_enterprise, web_gantt In this commit, we enhanced the Gantt view progress bar by modifying the display format. Previously, when the hours were not rounded, it would show as '4h' instead of '4h30'. We have now updated it to accurately represent the exact duration. Additionally, we changed the format from '4 h / 38 h' to '4h / 38h' for improved clarity. task-3178655
Odoo now automatically considers more invoice attachment types sent to journal email aliases, such as XML e-invoices, instead of only PDFs. It filters out media files like images, audio, and video, helping businesses create invoices from relevant documents more reliably while reducing manual follow-up.
Original PR description
Problem --------- In 16.2, we added a filter on Journals that allows Odoo to filter the attachments in emails received on a Journal email alias and create one invoice per file that passed the filter.…
Problem
---------
In 16.2, we added a filter on Journals that allows Odoo to filter
the attachments in emails received on a Journal email alias and create
one invoice per file that passed the filter.
The problem is that we've made a filter that only considers PDFs,
excluding all other invoice files, like XMLs. And those are getting
more and more popular with the emergence of electronic invoices.
Objective
---------
We reverse the logic of the filter:
- Remove the setting and always filter the attachment received on an
email alias
- Change the behavior of the filter:
- Filter out all image, video and audio files
- Create one invoice for every other attachment found
Solution
---------
1. Remove all code related to `alias_auto_extract_pdfs_only` and
`display_alias_auto_extract_pdfs_only`. Since the journal view
extension only displays those two fields, we delete it as well.
2. Add a filter in attachments that returns True if the attachment
mimetype is not blacklisted. This helps us filter attachments easily.
3. Update `_message_post_after_hook` to fulfill the objective:
- Create an invoice for meaningful attachments
- Lose the rest into the void.
4. Add the parameter `attachment` on the function `_needs_auto_extract`;
before this change, a document would only be auto-extracted if its main
attachment was to be extracted. This is a bit simplistic since other
attachments could need extraction. Furthermore, this function is
mainly called when fetching the decoder for a particular attachment. It
makes more sense to check that this given attachment is to be extracted
rather than always checking if the document's main attachment is to be
extracted. For those reasons, this computation of this function has been
updated to be specific to the given attachment.
NOTE: The first commit is part of this PR: https://github.com/odoo/enterprise/pull/48294
Task-3536162Contract reports now show as blank when an employee has no available contract details, including when the employee is archived. This avoids displaying outdated or misleading contract information and makes the report behavior clearer for HR users.
Original PR description
…y contract In this commit we Implemented conditional logic for contract report 1. Blank report when no contract details are present. Task-3522177