flectra/addons/sale_crm/views/sale_order_views.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

51 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale_action_quotations_new" model="ir.actions.act_window">
<field name="name">Quotation</field>
<field name="res_model">sale.order</field>
<field name="view_mode">form,tree,graph</field>
<field name="domain">[('opportunity_id', '=', active_id)]</field>
<field name="context">{'search_default_opportunity_id': active_id, 'default_opportunity_id': active_id}</field>
</record>
<record id="sale_action_quotations" model="ir.actions.act_window">
<field name="name">Quotations</field>
<field name="res_model">sale.order</field>
<field name="domain">[('opportunity_id', '=', active_id)]</field>
<field name="context">{'search_default_opportunity_id': [active_id], 'default_opportunity_id': active_id}</field>
</record>
<record id="sale_action_orders" model="ir.actions.act_window">
<field name="name">Sale orders</field>
<field name="res_model">sale.order</field>
<field name="domain">[('opportunity_id', '=', active_id), ('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
<field name="context">{'search_default_opportunity_id': [active_id], 'default_opportunity_id': active_id}</field>
</record>
<record id="sale_view_inherit123" model="ir.ui.view">
<field name="name">sale.order.form.inherit.sale</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="tag_ids" widget="many2many_tags"/>
</field>
<xpath expr="//group[@name='technical']" position="inside">
<field name="campaign_id" groups="base.group_no_one" />
<field name="medium_id" groups="base.group_no_one"/>
<field name="source_id" groups="base.group_no_one"/>
<field name="opportunity_id" help="Log in the chatter from which opportunity the order originates" groups="base.group_no_one"/>
</xpath>
</field>
</record>
<!-- This menu is display in CRM app when sale is installed-->
<menuitem
id="sale_order_menu_quotations_crm"
action="sale.action_quotations"
parent="crm.crm_menu_pipeline"
sequence="10"/>
</odoo>