[FIX] project_average_acceptable_time: use Odoo 18 optional fields API
Odoo 18 replaced the ``OPTIONAL_BILLING_FIELDS`` class attribute with the ``_get_optional_fields()`` method. The portal controller still appended to the removed attribute, raising ``AttributeError`` on every request to ``/my/account`` and making the page unavailable to all portal users. Override ``_get_optional_fields()`` instead, as ``elabore_subscription_price`` already does, and add HTTP tests covering the page load and the default project update on form submission.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "project_average_acceptable_time",
|
||||
"version": "18.0.1.1.0",
|
||||
"version": "18.0.1.1.1",
|
||||
"author": "Elabore",
|
||||
"website": "https://git.elabore.coop/elabore/project-tools",
|
||||
"maintainer": "Clément Thomas",
|
||||
|
||||
Reference in New Issue
Block a user