Skip to Content
Menu
This question has been flagged
2882 Views

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>

Avatar
Discard
Related Posts Replies Views Activity
4
May 24
10079
1
Apr 24
1566
0
Nov 23
525
1
Sep 23
572
2
Aug 23
2427