Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
6693 Visualizzazioni

Am trying to add multiple weak functionality in odoo 12. I've done it all but the only thing missing is that widget section_one2many. I tried to create this widget in by using js code of odoo 13 and giving its path in web.asset: like this,

<template id="assets_backend" name="calendar" inherit_id="web.assets_backend">
<xpath
expr="." position="inside">
<script
type="text/javascript" src="/two_weeks_calendar/static/src/js/fields_section_one2many.js"/>

</xpath>
</template>

But this is not working. Still am not getting the functionality of this widget. Kindly help, Thanks in advance

                                                                   

Avatar
Abbandona
Autore

anyone?

Risposta migliore

Hello Abudullah,


You have imported v13's section widget file properly. You need to do 2 things:

1. You need need to add widget='section_one2many' where you define one2many field.

2 Make sure you have value display_type field as 'line_section'  of your one2many.


Then it should work.

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

Avatar
Abbandona
Autore

Hello sir thanks for replying. My widget is working fine now but i am not able to get the scss file to run alongwith like that black background color we get in odoo13, i have inherited the style file properly but still its not working, can u tell me what is the issue?

Post correlati Risposte Visualizzazioni Attività
1
set 22
10338
1
lug 20
4897
4
lug 24
10619
0
giu 24
1377
2
lug 23
3898