Daily updates from Odoo
Navigate
Branch
Thursday, February 24, 2022
9 changes
Enhancements to existing features
Users can now apply data filters within document spreadsheets, making it easier to narrow down and analyze lists or pivot data. This improves everyday reporting workflows by helping teams focus on the records that matter without leaving the spreadsheet.
This update renames an internal JavaScript concept in the Mail app to make the code easier for developers to understand and maintain. It does not change how users interact with Odoo, but it can help reduce confusion and support future improvements.
Original PR description
Removes confusion in technical code. An instance of Thread is a thread, by analogy a record should be an instance of Record.
The DHL delivery connector now allows administrators to add custom request data for rating, shipping, and returns from the carrier settings in debug mode. This gives businesses more flexibility to meet DHL-specific integration needs without changing the core connector code.
Original PR description
Before this commit, there was no way to insert custom data to the DHL connector. With this commit, we add a custom field that can be accesses from the delivery carrier view, only in debug mode. This…
Before this commit, there was no way to insert custom data to the
DHL connector. With this commit, we add a custom field that can be
accesses from the delivery carrier view, only in debug mode.
This custom field will be evaluated like the inside of a python dict().
The keys of this dict will be 'rate', 'ship', 'return' depending on
when/where the user wants to add custom data.
Just before we send the data to the API, the request items are of type
`<class 'zeep.objects.Request'>`. This is practical to keep it that way
until then because the data added to it is checked with the wsdl file.
However, this is not practical when we want to add custom data. This
is more convenient to use a dictionary at this point. Dictionaries are
supported by zeep, so we do not need to convert it back to a zeep
object. to convert the zeep object to a dictionary, we can use the
function `zeep.helpers.serialize_object`. By default, the resulting
object is an ordered dict, which is an instance of a dict.
example of valid custom data:
```
'rate': {
"Request": {
"MetaData": {
"SoftwareName": "DefinitelyNotOdoo",
}
},
},
'ship': {
"ShipmentDetails": {"Pieces": {"Piece": {"Weight": '0.03'}}},
},
```
In the example for the 'ship' request, the Piece object is actually a
list of Pieve object. Each Piece object will be affected by the new
value.
task-2658889FedEx delivery handling now uses shared package and commodity information from the base delivery process, reducing duplicated setup across carriers. The update also supports declared package values for shipping insurance, helping businesses better cover parcels that are lost or damaged while respecting FedEx limits.
Original PR description
Each delivery provider, requires some information about the packages that need to be sent as well as about the commodities (for commecial invoices). Since this is needed by each provider, and the required values are very similar, these packages and commodities can be done one step ahead: in the base delivery module. reference-branch= https://github.com/odoo-dev/odoo/tree/master-ref_ups_add_insurance_percentage-goa
UPS delivery now supports commercial invoices for international shipments by adding required commodity details and return shipment handling. It also adds package insurance value support, helping businesses better document cross-border shipments and protect parcels in transit.
Original PR description
To generate a commercial invoice, UPS needed more information about the commodities. This commit does not change the code structure, it only adds the set_invoice function as well as the Commodity class and the _get_commodities function. I also added the 'is_return' boolean in the shipment info to be able to modify the ReasonForExport from SALE to RETURN. task-2701428
Resolved issues and error corrections
This fix prevents an error that could occur when preparing contract documents for signature. It helps ensure the HR contract signing workflow continues reliably when assigning signing roles.
Original PR description
Data is constructed with 'role' but 'role_id' is used as a key right after.
Receipt scanning for expenses now sets a date even when the automated extraction service cannot detect one. This helps avoid incomplete expense records and reduces manual cleanup for employees and accounting teams.
Original PR description
task - 2768700
Code cleanup and technical improvements
This update refactors the shared web request handling used by several Odoo Enterprise apps. It helps align Enterprise modules with the updated core platform, improving long-term maintainability without introducing a direct business feature change.
Original PR description
Companion of https://github.com/odoo/odoo/pull/78857
Miscellaneous changes
Purpose ======= After adding a printer in the product report, a traceback pops up when we try to print the zpl report. The issue is that **adapterParent.call** is not a function Specification ============= The issue was just a miss-typing, we wanted to use **call** on **iotDevice** and not on **adapterParent** opw-2683600 Forward-Port-Of: odoo/enterprise#24575
Original PR description
Purpose ======= After adding a printer in the product report, a traceback pops up when we try to print the zpl report. The issue is that **adapterParent.call** is not a function Specification ============= The issue was just a miss-typing, we wanted to use **call** on **iotDevice** and not on **adapterParent** opw-2683600 Forward-Port-Of: odoo/enterprise#24575