[IMP] crm_project: improve the view of report_crm_project_bug and set the default...
[odoo/odoo.git] / addons / sale_crm / sale_crm_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3 <data>
4
5     <record model="ir.ui.view" id="crm_case_form_view_oppor">
6         <field name="name">CRM - Opportunities - Quote Inherit</field>
7         <field name="model">crm.opportunity</field>
8         <field name="type">form</field>
9         <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
10         <field name="arch" type="xml">
11             <xpath expr="/form[@string='Opportunities']/group/button[@string='Schedule Call']" position="after">
12                 <group colspan="7" col="7">
13                 <label colspan="6"  string=""/>
14                         <button string="Convert to Quote" icon="terp-sale" name="%(sale_crm_wizard)d" type="action"/>
15                 </group>
16             </xpath>           
17         </field>
18     </record>
19
20     <record model="ir.ui.view" id="sale_view_inherit123">
21         <field name="name">sale.order.inherit</field>
22         <field name="model">sale.order</field>
23         <field name="type">form</field>
24         <field name="inherit_id" ref="sale.view_order_form"/>
25         <field name="arch" type="xml">
26             <xpath expr="/form/notebook/page/field['company_id']" position="after">
27                 <field name="section_id" widget='selection'/>
28             </xpath>
29         </field>
30     </record>
31
32         <record id="view_sales_order_filter_inherit" model="ir.ui.view">
33         <field name="name">sale.order.list.select</field>
34         <field name="model">sale.order</field>
35         <field name="type">search</field>
36         <field name="inherit_id" ref="sale.view_sales_order_filter"/>
37         <field name="arch" type="xml">
38                 <field name="date_order" position="after">
39                         <field name="section_id" default="context.get('section_id', False)" select="1" widget="selection" string="Section">
40                                         <filter icon="terp-crm"
41                             domain="[('section_id','=',context.get('section_id',False))]"
42                             help="My section"/>
43                             </field>
44                 </field>
45             </field>
46         </record>
47 </data>
48 </openerp>
49