콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
13829 화면

hello any help please

I use odoo 12, when generating payslip lots an error message is displayed:

Uncaught TypeError: Cannot read property 'colspan' of undefined
http://localhost:8069/web/content/685-931e013/web.assets_backend.js:1623
Retraçage :
TypeError: Cannot read property 'colspan' of undefined
    at http://localhost:8069/web/content/685-931e013/web.assets_backend.js:1623:34
    at Function._.each._.forEach (http://localhost:8069/web/content/662-3020b2c/web.assets_common.js:12:558)
    at Class._renderInnerGroup (http://localhost:8069/web/content/685-931e013/web.assets_backend.js:1622:63)
    at Class._renderTagGroup (http://localhost:8069/web/content/685-931e013/web.assets_backend.js:1636:228)
    at Class._renderNode [as _super] (http://localhost:8069/web/content/685-931e013/web.assets_backend.js:1628:246)
    at Class._renderNode (http://localhost:8069/web/content/685-931e013/web.assets_backend.js:3265:50)
    at Class.<anonymous> (http://localhost:8069/web/content/662-3020b2c/web.assets_common.js:3540:371)
    at Class._renderNode (http://localhost:8069/web/content/685-931e013/web.assets_backend.js:3389:57)
    at Class._renderNode (http://localhost:8069/web/content/662-3020b2c/web.assets_common.js:3540:371)
    at Function._.map._.collect (http://localhost:8069/web/content/662-3020b2c/web.assets_common.js:13:270)


아바타
취소
베스트 답변


Every form view container (form itself, group, page, I think there are more) in OpenERP consists of 4 columns to start with.

<form>
┌───┬───┬───┬───┐
│ 1 │ 2 │ 3 │ 4 │
└───┴───┴───┴───┘
</form> 

Every <field> takes 2 columns: label & input field

<field name="input" />
<field name="inpt2" />
┌───────┬───────┬───────┬───────┐
│ label │ input │ labl2 │ inpt2 │
└───────┴───────┴───────┴───────┘ 

With colspan, you can widen items.

<field name="inpt4" colspan="4"/>
<field name="input" />
<field name="inpt2" />
┌───────┬───────────────────────┐
│ labl4 │ inpt4_______________  │
├───────┼───────┬───────┬───────┤
│ label │ input │ labl2 │ inpt2 │
└───────┴───────┴───────┴───────┘

<field name="input" />
<field name="inpt4" colspan="4"/>
<field name="inpt2" />

┌───────┬───────┬───────┬───────┐
│ label │ input │       │       │
├───────┼───────┴───────┴───────┤
│ labl4 │ inpt4_______________  │
├───────┼───────┬───────┬───────┤
│ labl2 │ inpt2 │       │       │
└───────┴───────┴───────┴───────┘ 

When you add additional containers, like a page, you can tell OpenERP to use more or less columns.

<group col="2" colspan="2">
    <field name="a" />
    <field name="b" />
</group>
<group col="6" colspan="2">
    <field name="d" />
    <field name="e" />
    <field name="f" />
</group>
│       │       │                │                │
├───────┴───────┼────────────────┴────────────────┤
│ ┌────┬───┐    │  ┌────┬───┬────┬───┬────┬───┐   │
│ │ lb │ a │    │  │ lb │ d │ lb │ e │ lb │ f │   │
│ ├────┼───┤    │  └────┴───┴────┴───┴────┴───┘   │
│ │ lb │ b │    │                                 │
│ └────┴───┘    │                                 │
├───────┬───────┼────────────────┬────────────────┤
│       │       │                │                │
  


아바타
취소
베스트 답변

Mostly this issue comes because of the wrong tag closing in XML files.

Example ; 

< field name ="discountP" attrs ="{'readonly':[('name','!=','New')]}" />/>


// here you can see I use />/> and also editor does not give you any warning on this.


아바타
취소
베스트 답변

I can't apply these edits to my site

아바타
취소
베스트 답변

Please i have the same problem. Can you help me to resolve this error please.

아바타
취소
작성자 베스트 답변

Hello 

please update your package odoo Error solved :) 

아바타
취소
관련 게시물 답글 화면 활동
1
3월 25
1971
0
10월 16
5158
1
9월 23
3981
0
5월 20
2365
0
8월 19
4419