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

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

                                                                   

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

anyone?

أفضل إجابة

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

   

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

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?

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 22
10361
1
يوليو 20
4906
4
يوليو 24
10630
0
يونيو 24
1396
2
يوليو 23
3914