跳至內容
選單
此問題已被標幟
4 回覆
6697 瀏覽次數

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
9月 22
10347
1
7月 20
4901
4
7月 24
10624
0
6月 24
1383
2
7月 23
3904