Tuesday, February 25, 2025
4 changes · saas-18.2
Resolved issues and error corrections
This update prevents an error when the system prepares Indian electronic invoice data for a new invoice that does not yet have an invoice date. It helps keep automated checks stable and avoids interruptions in invoice-related processing.
Original PR description
traceback: ```py ERROR: Subtest TestEveryModel.test_computed_fields_without_dependencies [Compute method of account.move.l10n_in_edi_content should work on new record.] Traceback (most recent call…
traceback:
```py
ERROR: Subtest TestEveryModel.test_computed_fields_without_dependencies [Compute method of account.move.l10n_in_edi_content should work on new record.]
Traceback (most recent call last):
File "/data/build/odoo/odoo/addons/base/tests/test_display_name.py", line 61, in test_computed_fields_without_dependencies
model.new()[field.name]
~~~~~~~~~~~^^^^^^^^^^^^
File "/data/build/odoo/odoo/orm/models.py", line 6321, in __getitem__
return self._fields[key].__get__(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/orm/fields.py", line 1424, in __get__
self.compute_value(recs)
File "/data/build/odoo/odoo/orm/fields_binary.py", line 137, in compute_value
super().compute_value(records)
File "/data/build/odoo/odoo/orm/fields.py", line 1590, in compute_value
records._compute_field_value(self)
File "/data/build/odoo/addons/mail/models/mail_thread.py", line 474, in _compute_field_value
return super()._compute_field_value(field)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/odoo/orm/models.py", line 4542, in _compute_field_value
determine(field.compute, self)
File "/data/build/odoo/odoo/orm/fields.py", line 69, in determine
return needle(*args)
^^^^^^^^^^^^^
File "/data/build/odoo/addons/l10n_in_edi/models/account_move.py", line 75, in _compute_l10n_in_edi_content
json.dumps(move._l10n_in_edi_generate_invoice_json()).encode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/build/odoo/addons/l10n_in_edi/models/account_move.py", line 513, in _l10n_in_edi_generate_invoice_json
"Dt": self.invoice_date.strftime("%d/%m/%Y")
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'strftime'
```
In this commit we fix the above traceback
error related to runbot nightly build
https://runbot.odoo.com/odoo/runbot.build.error/134225
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prShort website or portal tours could fail if the portal chatter was still loading when the tour ended. This fix prevents that harmless loading interruption from being treated as a crash, improving reliability of automated checks without changing user-facing behavior.
Original PR description
Before this commit, short portal and website tours that open a page with portal chatter may crash with following error: ``` Error received after termination: AssetsLoadingError: The loading of http://127.0.0.1:8069/web/bundle/portal.assets_chatter_style?lang=en_US&website_id=1 failed ``` This happens because the tour is so short and doesn't assert loading of portal chatter that the tour ends while portal chatter hasn't been loaded. The tour termination forces abort of ongoing lazy-loading such as portal chatter, which results in the crash above. This commit fixes the issue by silently catching the error in this very specific case that lazy-loading has been aborted by browser page reload or closing, which is precisely the case with tour. The crash is not relevant in that case, in practice the crash is intended to detect programming errors. runbot-114302
This fix ensures session-related web code is only loaded where it is needed in the main web client. It also removes an unused attendance menu asset from the public attendance bundle, reducing unnecessary code loading and potential conflicts.
Original PR description
*: hr_attendance This commit moves the session_service to the backend folder instead of the core folder. We also remove the unused attendance menu item used by the systray registry from the `hr_attendance.assets_public_attendance` bundle. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Sales commission reports were updated to work with a newer internal filtering system. This prevents report errors after platform changes and keeps commission and margin achievement reporting reliable.
Original PR description
Since https://github.com/odoo/odoo/pull/191784 expression is depreciated in favor to Domain. This commit update the calls. Unfortunately, the new mechanism is not backward compatible and it does not work with aliases. As a result, we also have to remove all aliases to so and am.