Skip to Content
Menu
This question has been flagged
1 Reply
1589 Views

Hello I need Help in Odoo Customization. 

I'm workin in http://localhost:8069/my and http://localhost:8069/my/account page - So First in /my/account page I want to show list of main_activity list that I already I created in models and linked with res.partner model also, I add this code to show list of acitivities in db using this code ; 




 

But it show me a empty list (also I want to know how can I find the controller name to make some updates ) 2 - Second problem I want to add a new Box in /my page that show country name (I want to know how can I find id page to inherit it and make my updates ) I use odoo 17 and I will me happy for your help.

Avatar
Discard
Author

<div t-attf-class="mb-3 #{error.get('main_activity_id') and 'o_has_error' or ''} col-xl-6">
<label class="col-form-label" for="main_activity_id">Main Activity</label>
<select name="main_activity_id" t-attf-class="form-select #{error.get('main_activity_id') and 'is-invalid' or ''}" t-att-disabled="None if partner_can_edit_vat else '1'">
<option value="">Main Acitivity...</option>
<t t-foreach="main_activities or []" t-as="main_activity">
<option t-att-value="main_activity.id" t-att-selected="main_activity.id == int(main_activity_id) if main_activity_id else main_activity.id == partner.main_activity.id">
<t t-esc="main_activity.name"/>
</option>
</t>
</select>
<small t-if="not partner_can_edit_vat" class="form-text text-muted d-block d-xl-none">Changing the country is not allowed once document(s) have been issued for your account. Please contact us directly for this operation.</small>
</div>

Related Posts Replies Views Activity
1
Feb 24
814
0
Apr 24
23
4
May 25
2588
2
May 25
5977
1
Mar 25
1722