Skip to Content
Menu
This question has been flagged
4 Replies
5605 Views

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

anyone?

Best Answer

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

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?

Related Posts Replies Views Activity
1
Sep 22
9234
1
Jul 20
3819
4
Jul 24
8937
0
Jun 24
324
2
Jul 23
2586