Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2791 มุมมอง

The problem is the following, it turns out that I have created a model called centaur.inventory , and created two tree views with their respective fields, but in the second tree view "sale_history_view_tree" I only want one field to appear and all the fields that I place appear At first glance, what's up? 


view one

id="centaur_view_tree"model="ir.ui.view">name="name">centaur_inventory_view_treename="model">centaur.inventoryname="arch"type="xml">name="name"/>name="serial"/>name="groups"/>name="product_date"/>name="size"/>name="total"/>name="state"/>
id="action_form_centaur_inventory"name="Productos"res_model = "centaur.inventory"view_mode="tree,form"/>
id="centaur_menu"name="Centauro inventario"/>
id="menu_form_centaur_inventory"name="Productos"parent ="centaur_inventory.centaur_menu"action="action_form_centaur_inventory"sequence="10"/>


view two 

  id="sale_history_view_tree"model="ir.ui.view">       name="name">centaur_sale_view_treename="model">centaur.inventory

name="arch"type="xml">

name="name"/>


id="action_sale_history"name="Historial de ventas"res_model = "centaur.inventory"view_mode="tree"/>
id="menu_tree_sale"name="Historial de ventas"parent ="centaur_inventory.centaur_menu"action="action_sale_history"sequence="20"/>

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hey louis,

    You have to give tree_view_ref field value in action context

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ธ.ค. 23
23555
1
ก.ย. 18
2790
1
พ.ค. 15
23385
1
ก.ค. 25
2580
0
มี.ค. 24
868