[IMP] project_average_acceptable_time: migration to v14

This commit is contained in:
clementthomas
2023-07-24 12:17:43 +02:00
parent 5a30d61fee
commit 77b26fd755
4 changed files with 14 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ from odoo.addons.portal.controllers.portal import CustomerPortal
class CustomCustomerPortal(CustomerPortal):
@route(["/my/account"], type="http", auth="user", website=True)
def account(self, redirect=None, **post):
self.OPTIONAL_BILLING_FIELDS.append("average_acceptable_time")
self.OPTIONAL_BILLING_FIELDS.append("average_acceptable_time") #unecessary save in res partner, but necessary to avoid error on form post
response = super(CustomCustomerPortal, self).account(redirect, **post)