コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
6710 ビュー

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
10361
1
7月 20
4906
4
7月 24
10632
0
6月 24
1398
2
7月 23
3916