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

Example:

 

Module1.module1

Name = fields.Char()

 

________________

|records  : Cow        |

|                : Goat       |

|                : Bull         |

|                : Chicken  |

|                : Fish         |

----------------------------

 

Module2.module2

 

Animal _type = fields.Many2one(‘module1.module1’)

Animal_id = fields.Char()

Animal_fat=fields.Char()

Animal_meat=fields.Char()

 

 

---------------------------------------------Records module2.module2---------------------------------------

Animal_type      |              Animal_ID           |              Animal Fat           |              Animal meat      |

Goat                      |              Goat001               |              40%                        |              60%                        |

Goat                      |              Goat002               |              20%                        |              80%                        |

Goat                      |              Goat003               |              10%                        |              90%                        |

Cow                       |              Cow045                |              30%                        |              70%                        |

 

 

 

Module2-webportal.xml

 

<template>

 

<!--- I want to add here the record list from module1.module1 the code will be inside of Module2-webportal.xml and it shows as dropdown--->

 

<t t-foreach=”docsModule2” t-as=”module2”>

<div>

                                                <span t-field=”module2.animal_type.display_name”/>

                                                <span t-field=”module2.animal_id”/>

                                                <span t-field=”module2.animal_fat”/>

<span t-field=”module2.animal_meat”/>

</div>

 

</t>

</template>

아바타
취소
관련 게시물 답글 화면 활동
4
5월 24
12589
1
4월 24
3230
0
11월 23
1958
1
9월 23
2062
2
8월 23
4443