Community mailing list archives

community@mail.odoo.com

2 page call the same table

by
Abdoulkader KAIRE BOUNI
- 06/16/2015 09:36:21
I have a problem at the level priority of my view (see the code in attachment) .I have 2 pages which call the same table but with views and form differente.My code still displays a single view and form into the 2 pages.
Someone can help me ???

  <notebook >
                <page string="Remboursement des retenues" attrs="{'invisible':['|',('type_courrier_id','!=',5),('state','=',3)]}">
                    <field  name="pension_ids" nolabel="1" attrs="{'invisible':[('type_courrier_id','!=',5)]}" context="{'form_view_id':'cnss_pensions.cnss_tab_remboursement_form','tree_view_id':'cnss_pensions.cnss_tab_remboursement_tree','priority':'1'}" /> 
          
               </page>
            
               <page  string="Pension"  attrs="{'invisible':['|',('type_courrier_id','=',5),('state','=',3)]}">
                
                 <field  name="pension_ids" nolabel="1" attrs="{'invisible':[('type_courrier_id','=',5)]}" context="{'form_view_id':'cnss_pensions.cnss_tab_pension_form','tree_view_id':'cnss_pensions.cnss_tab_pension_tree'}"/>
                      
               </page>

best regards
Bounio