Monday, December 11, 2023
17 changes · master
Enhancements to existing features
Managers can now filter and group project and field service tasks based on the skills of assigned employees. This makes it easier to match work with the right people without already knowing who has each skill.
Original PR description
A new module was added to address the absence of a bridge module between the industry_fsm and hr_skills modules. and the skill_ids field was implemented for the search view. task-3349411
Users can now choose specific records from a list view and insert only those selections into a spreadsheet. This makes spreadsheet reporting more focused and avoids bringing in unwanted records from the broader list search.
Original PR description
This PR introduces the functionality to allows users to insert selective records from the list view. The functionality is achieved by adding a new domain alongwith the existing 'search model domain', via `getListForSpreadsheet` method. Task ID : 3487810
When a warehouse user scans a package during a transfer in the Barcode app, the system now separates the remaining quantity into a new line before assigning it to that package. This makes package handling more accurate and reduces manual adjustments during transfer processing.
Original PR description
Scanning a package while processing an transfer in the barcode app now split off the remaining quantity into a new move line before assigning the package to it. Task-3370959 ~~Related: odoo/odoo#137813~~ This task no longer requires changes to odoo/odoo.
Resolved issues and error corrections
Clicking an avatar in the Project Gantt view now opens the chat window as expected. This makes project communication behavior consistent with other Gantt views and removes a small usability issue for users.
Original PR description
Steps to Reproduce: - Open project - Go to projects settings - On Project Stages - Now open gantt view of project Issue: - thumbnail was used for project.project gantt view so due to that when we click on avatar it was not opening chatwindow like other gantt views Fix: - So we have made it consistent like other views task-3504321
Features or functions removed from Odoo
The unused Down Payments product setting has been removed because it has been obsolete since version 16.2. This reduces configuration clutter and avoids confusion for users managing sales-related workflows.
Original PR description
Since version 16.2, the Down Payments setting became obsolete. Dead field, never used. Task: 3618096
Code cleanup and technical improvements
The Point of Sale interface has been simplified by removing a special handling mechanism for temporary screens. These screens now behave like regular screens or dialogs, reducing complexity and making future maintenance less error-prone.
Original PR description
The pos uses a special mechanism to handle the so called "temp screens". These are screens that are not considered part of the normal flow. This mechanism is overly complicated and error prone. Apart from this, the whole idea of temp screens is not really needed, as these screens can be considered as normal screens, or as dialogs. This is what we do in this commit: we remove the temp screens mechanism and adapt all the temps screens to be normal screens or dialogs. Task 3613049 https://github.com/odoo/odoo/pull/141293
Miscellaneous changes
**Version:** - 17.0 **Steps to reproduce:** - create a new subscription - confirm the subscription - upsell the subscription, Create Alternative button is not available **Issue:** The upsell subscription does not have the 'Create Alternative' button. **Cause:** The upsell subscription does not have the 'Create Alternative' button because of the false invisible condition. **Solution:** We fixed the domain and made the 'Create Alternative' button available on the u
Original PR description
**Version:** - 17.0 **Steps to reproduce:** - create a new subscription - confirm the subscription - upsell the subscription, Create Alternative button is not available **Issue:** The upsell subscription does not have the 'Create Alternative' button. **Cause:** The upsell subscription does not have the 'Create Alternative' button because of the false invisible condition. **Solution:** We fixed the domain and made the 'Create Alternative' button available on the upsell subscription. task-3573486 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/enterprise#49912
Field service customer details now display the partner name and city on the same line. This fixes a small visual issue in shared project views, making address information easier to read and more consistent.
Original PR description
This commit ensures the partner name and partner city are displayed in the same line. It also updates the code according to the changes made in community (see #144492) Task-3383519
This change reorganizes internal mail logic so information is handled closer to the relevant business records. It should make future mail-related changes simpler and safer, with little direct impact on day-to-day users.
Original PR description
All data are related to models, and code using it is simpler by just relying on record at hand. https://github.com/odoo/odoo/pull/145348
Currently, when trying to find an `account.move` from a document number, we get the padding used on the latest `account.move` and use it, along with the document type (and the document number) to reconstruct a move's name. However, the latest `account.move` could end up being a generic journal entry, making the whole process fail. opw-3490343 Forward-Port-Of: odoo/enterprise#52483 Forward-Port-Of: odoo/enterprise#51680
Original PR description
Currently, when trying to find an `account.move` from a document number, we get the padding used on the latest `account.move` and use it, along with the document type (and the document number) to reconstruct a move's name. However, the latest `account.move` could end up being a generic journal entry, making the whole process fail. opw-3490343 Forward-Port-Of: odoo/enterprise#52483 Forward-Port-Of: odoo/enterprise#51680
An error occurs when the customer runs the scheduled action `Automatic update of state on the SAT (for invoices)`. This is because `self.env.ref` is used instead of `self.env` for calling reference see below. https://github.com/odoo/enterprise/blob/5ff3da3e5f267b69f7dd32261c5d2426ca327548/l10n_mx_edi/models/l10n_mx_edi_document.py#L2168 sentry traceback- ``` AttributeError: 'str' object has no attribute 'transaction' File "odoo/tools/safe_eval.py", line 365, in safe_eval return u
Original PR description
An error occurs when the customer runs the scheduled action `Automatic update of state on the SAT (for invoices)`. This is because `self.env.ref` is used instead of `self.env` for calling reference…
An error occurs when the customer runs the scheduled action `Automatic update of state on the SAT (for invoices)`. This is because `self.env.ref` is used instead of `self.env` for calling reference see below.
https://github.com/odoo/enterprise/blob/5ff3da3e5f267b69f7dd32261c5d2426ca327548/l10n_mx_edi/models/l10n_mx_edi_document.py#L2168
sentry traceback-
```
AttributeError: 'str' object has no attribute 'transaction'
File "odoo/tools/safe_eval.py", line 365, in safe_eval
return unsafe_eval(c, globals_dict, locals_dict)
File "ir.actions.server(333,)", line 1, in <module>
File "home/odoo/src/enterprise/17.0/l10n_mx_edi/models/l10n_mx_edi_document.py", line 2163, in _fetch_and_update_sat_status
self.env('l10n_mx_edi.ir_cron_update_pac_status_invoice')._trigger()
File "odoo/api.py", line 562, in __call__
return Environment(cr, uid, context, su)
File "odoo/api.py", line 494, in __new__
transaction = cr.transaction
ValueError: <class 'AttributeError'>: "'str' object has no attribute 'transaction'" while evaluating
"env['l10n_mx_edi.document']._fetch_and_update_sat_status()"
File "odoo/addons/base/models/ir_cron.py", line 377, in _callback
self.env['ir.actions.server'].browse(server_action_id).run()
File "home/odoo/src/custom/trial/saas_trial/models/sentry.py", line 33, in run
res = super().run()
File "odoo/addons/base/models/ir_actions.py", line 932, in run
res = runner(run_self, eval_context=eval_context)
File "odoo/addons/base/models/ir_actions.py", line 764, in _run_action_code_multi
safe_eval(self.code.strip(), eval_context, mode="exec", nocopy=True, filename=str(self)) # nocopy allows to return 'action'
File "odoo/tools/safe_eval.py", line 379, in safe_eval
raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
```
This commit fixes the above issue by calling reference with `self.env.ref` instead of `self.env`.
sentry-4707826242
Forward-Port-Of: odoo/enterprise#52375Before this commit, from the home menu, if the menu_id in the url is modified, it is ignored and replaced by the menu_id of the last application visited. How to reproduce: - Go to the home menu - Go to application A - Return to the home menu - Modify the url by adding the menu_id of application B Before this commit: The menu_id of app B is ignored and replaced by that of app A. App A is displayed After this commit: The menu_id of app B is still present. App B is displayed
Original PR description
Before this commit, from the home menu, if the menu_id in the url is modified, it is ignored and replaced by the menu_id of the last application visited.
How to reproduce:
- Go to the home menu
- Go to application A
- Return to the home menu
- Modify the url by adding the menu_id of application B
Before this commit:
The menu_id of app B is ignored and replaced by that of app A. App A is displayed
After this commit:
The menu_id of app B is still present. App B is displayed
Steps to reproduce the bug:
- Go to Point of Sale
- Add a bookmark
- Go back to the home page
- Go to Contacts
- Go back to the home page
- Open the bookmark -> The control panel is still the contact one
opw-3595281
Bug introduce by: https://github.com/odoo/odoo/pull/124068
Forward-Port-Of: odoo/enterprise#52382The computation of the country_id of account.tax & account.tax.group no longer depends of the fiscal country of the company. Forward-Port-Of: odoo/enterprise#52331 Forward-Port-Of: odoo/enterprise#51286
Original PR description
The computation of the country_id of account.tax & account.tax.group no longer depends of the fiscal country of the company. Forward-Port-Of: odoo/enterprise#52331 Forward-Port-Of: odoo/enterprise#51286
Steps to reproduce: 1. From Inventory - > Select multiple transfers 2. Add them to a new batch without assigning 3. Open barcode -> Batch Transfer 4. Click + assign 5. Error Bug: check company is set on user_id in stock.picking which implicitly adds a domain for company_id (on res.user) but in this case company_id is missing from the evalContext opw-3609045 Forward-Port-Of: odoo/enterprise#52048
Original PR description
Steps to reproduce: 1. From Inventory - > Select multiple transfers 2. Add them to a new batch without assigning 3. Open barcode -> Batch Transfer 4. Click + assign 5. Error Bug: check company is set on user_id in stock.picking which implicitly adds a domain for company_id (on res.user) but in this case company_id is missing from the evalContext opw-3609045 Forward-Port-Of: odoo/enterprise#52048
Before this commit: When editing a list view and setting a field's readonly attribute to true, "force_save" would be set to true while this should only be the case in the form view. After this commit: The "force_save" attribute is now only set in form view. Task: [3284910](https://www.odoo.com/mail/view?model=project.task&res_id=3284910&access_token=1e9b0d2e-0712-472c-8db8-f86e7f6287e9) Forward-Port-Of: odoo/enterprise#46471 Forward-Port-Of: odoo/enterprise#41783
Original PR description
Before this commit: When editing a list view and setting a field's readonly attribute to true, "force_save" would be set to true while this should only be the case in the form view. After this commit: The "force_save" attribute is now only set in form view. Task: [3284910](https://www.odoo.com/mail/view?model=project.task&res_id=3284910&access_token=1e9b0d2e-0712-472c-8db8-f86e7f6287e9) Forward-Port-Of: odoo/enterprise#46471 Forward-Port-Of: odoo/enterprise#41783
The structure of the stat button which is not generated by a field has been changed to match the buttons which are generated by a field. | Before | After | |--------|--------| |  | | Community PR: https://github.com/odoo/odoo/pull/141163 task-3573807
Original PR description
The structure of the stat button which is not generated by a field has been changed to match the buttons which are generated by a field. | Before | After | |--------|--------| |  | | Community PR: https://github.com/odoo/odoo/pull/141163 task-3573807 Forward-Port-Of: odoo/enterprise#50256
Before this PR when we see sla status analysis graph view it was showing random numbers shown by legend (SLA Failed /1 ). In this PR we have fixed that issue and made it as SLA Failed. task-3484150 Forward-Port-Of: odoo/enterprise#47057
Original PR description
Before this PR when we see sla status analysis graph view it was showing random numbers shown by legend (SLA Failed /1 ). In this PR we have fixed that issue and made it as SLA Failed. task-3484150 Forward-Port-Of: odoo/enterprise#47057