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

 I have seen in sale_view.xml 

<record model="ir.ui.view" id="view_sale_order_graph">    
<field name="name">sale.order.graph</field>
<field name="model">sale.order</field>
<field name="arch" type="xml">
<graph string="Sales Orders">
<field name="partner_id"/>
<field name="amount_total" type="measure"/>
 </graph>
</field></record>
I need to do the same thing inspite of <graph></graph>there should be <myelement></myelement>.Thank you
아바타
취소
베스트 답변

u can inherit that view like :

<record model="ir.ui.view" id="view_sale_order_graph_inherit">
    <field name="name">sale.order.graph.inherit</field>
     <field name="model">sale.order</field>
     <field name="inherit_id" ref="sale.view_sale_order_graph"
     <field name="arch" type="xml">
         <xpath expr="/graph" position="inside">
             <yourelement>
             </yourelement>
         </xpath>
     </field>
     

 
dont forget to depend ur module to sale and xml view in __openerp__.py
아바타
취소
관련 게시물 답글 화면 활동
5
6월 20
6704
2
3월 15
6346
1
5월 24
2493
0
1월 24
2344
2
11월 23
7420