Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1585 Vistas

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
Descartar
Autor

<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>

Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 24
801
0
abr 24
23
4
may 25
2571
2
may 25
5954
1
mar 25
1715