تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1245 أدوات العرض

Hi,

The following fields are available when resetting a portal user's password;


Your Email: brandon.freeman55@example.com

Your Name:Brandon Freeman

Password:

Confirm Password:


I want to see the user's company name in this form. For example;


Company:Azure Interior


I think a new controller file is needed. How do I do this?


Thanks

الصورة الرمزية
إهمال
أفضل إجابة

Hi,
To add extra contents in the password reset page.
1. First you need to locate the  template of the password reset page from the addons2. Inherit the template in your custom module3. Add a new div inside the template and call the company from the objectd. Run the module
Please refer the blog to know about the template inheritance

https://www.cybrosys.com/blog/an-overview-of-template-inheritance-in-odoo-16


Hope it helps

الصورة الرمزية
إهمال
الكاتب

Hi,
What is the company field I will call in the template? For example, could it be company_id?
Thanks

المنشورات ذات الصلة الردود أدوات العرض النشاط
6
يناير 25
115912
0
ديسمبر 20
3020
1
أكتوبر 16
8695
1
مارس 15
5086
1
مارس 15
6562