2012-04-26 10:31:33 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2012-07-18 14:11:12 +00:00
|
|
|
<record id="act_res_partner_2_sale_order" model="ir.actions.act_window">
|
|
|
|
<field name="name">Quotations and Sales</field>
|
|
|
|
<field name="res_model">sale.order</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form,graph</field>
|
|
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
|
|
<field name="groups_id" eval="[(4, ref('base.group_sale_salesman'))]"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-12-20 11:43:56 +00:00
|
|
|
Click to create a quotation or sales order for this customer.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p><p>
|
|
|
|
OpenERP will help you efficiently handle the complete sale flow:
|
2012-12-20 11:43:56 +00:00
|
|
|
quotation, sales order, delivery, invoicing and
|
2012-08-04 13:21:36 +00:00
|
|
|
payment.
|
|
|
|
</p><p>
|
2012-12-20 11:43:56 +00:00
|
|
|
The social feature helps you organize discussions on each sales
|
2012-08-04 13:21:36 +00:00
|
|
|
order, and allow your customer to keep track of the evolution
|
2012-12-20 11:43:56 +00:00
|
|
|
of the sales order.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p>
|
2012-07-18 14:11:12 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Partner kanban view inherte -->
|
2012-04-26 10:31:33 +00:00
|
|
|
<record model="ir.ui.view" id="crm_lead_partner_kanban_view">
|
2012-05-22 14:37:59 +00:00
|
|
|
<field name="name">res.partner.kanban.saleorder.inherit</field>
|
2012-04-26 10:31:33 +00:00
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
2012-07-20 08:36:29 +00:00
|
|
|
<field name="priority" eval="20"/>
|
2012-04-26 10:31:33 +00:00
|
|
|
<field name="arch" type="xml">
|
2012-05-22 14:37:59 +00:00
|
|
|
<field name="mobile" position="after">
|
2012-05-01 13:20:24 +00:00
|
|
|
<field name="sale_order_count"/>
|
2012-04-26 10:31:33 +00:00
|
|
|
</field>
|
2012-07-20 08:36:29 +00:00
|
|
|
<xpath expr="//div[@class='oe_kanban_partner_links']" position="inside">
|
|
|
|
<a name="%(sale.act_res_partner_2_sale_order)d" type="action" t-if="record.sale_order_count.value>0">
|
2012-07-14 16:04:03 +00:00
|
|
|
<t t-esc="record.sale_order_count.value"/> Sales
|
2012-04-26 10:31:33 +00:00
|
|
|
</a>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
2012-07-18 14:11:12 +00:00
|
|
|
|
|
|
|
<record id="res_partner_view_buttons" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.view.buttons</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
2012-07-18 14:25:24 +00:00
|
|
|
<field name="priority" eval="20"/>
|
2012-07-18 14:11:12 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//div[@name='buttons']" position="inside">
|
2014-03-20 13:44:14 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="action" name="%(sale.act_res_partner_2_sale_order)d"
|
2012-08-28 12:04:29 +00:00
|
|
|
attrs="{'invisible': [('customer', '=', False)]}"
|
2014-03-20 13:44:14 +00:00
|
|
|
icon="fa-strikethrough" groups="base.group_sale_salesman">
|
2014-03-28 13:30:51 +00:00
|
|
|
<field string="Sales" name="sale_order_count" widget="statinfo"/>
|
2014-03-20 13:44:14 +00:00
|
|
|
</button>
|
2012-07-18 14:11:12 +00:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-08-13 14:37:31 +00:00
|
|
|
<record id="res_partner_address_type" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.view.address_type</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//label[@for='type']" position="attributes">
|
|
|
|
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
|
|
|
<attribute name="invisible">False</attribute>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//div[@name='div_type']" position="attributes">
|
|
|
|
<attribute name="invisible">False</attribute>
|
2013-04-10 17:04:37 +00:00
|
|
|
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
2012-08-13 14:37:31 +00:00
|
|
|
</xpath>
|
2013-04-29 10:54:58 +00:00
|
|
|
<!-- Version-specific hacks to avoid breaking view inheritance when the sale module
|
|
|
|
is installed on top of an older 7.0 version of the base module
|
|
|
|
(as the second embedded div_type was added later in the 7.0 release)
|
|
|
|
TODO: remove the hacks in trunk -->
|
|
|
|
<xpath expr="//div[@name='div_type'][field[@name='use_parent_address']] | //field[@name='child_ids']//div[@name='div_type']" position="attributes">
|
2013-04-10 17:04:37 +00:00
|
|
|
<attribute name="invisible">False</attribute>
|
|
|
|
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
|
|
|
</xpath>
|
2013-04-29 10:54:58 +00:00
|
|
|
<xpath expr="//label[@for='type'][following-sibling::div[@name='div_type']/field[@name='use_parent_address']] | //field[@name='child_ids']//label[@for='type']" position="attributes">
|
2013-04-10 17:04:37 +00:00
|
|
|
<attribute name="invisible">False</attribute>
|
2012-08-13 14:37:31 +00:00
|
|
|
<attribute name="groups">sale.group_delivery_invoice_address</attribute>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-04-26 10:31:33 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|
|
|
|
|