mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 20:32:08 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="crm_case_form_view_oppor" model="ir.ui.view">
|
||||
<field name="name">crm.lead.oppor.inherited.crm</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.crm_lead_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='action_set_won_rainbowman']" position="before">
|
||||
<button string="New Quotation" name="action_sale_quotations_new" type="object" class="oe_highlight" data-hotkey="q"
|
||||
title="Create new quotation"
|
||||
attrs="{'invisible': ['|', ('type', '=', 'lead'), '&', ('probability', '=', 0), ('active', '=', False)]}"/>
|
||||
</xpath>
|
||||
<button name="action_set_won_rainbowman" position="attributes">
|
||||
<attribute name="class" remove="oe_highlight"/>
|
||||
</button>
|
||||
<button name="action_schedule_meeting" position="after">
|
||||
<button class="oe_stat_button" type="object"
|
||||
name="action_view_sale_quotation" icon="fa-pencil-square-o" attrs="{'invisible': [('type', '=', 'lead')]}">
|
||||
<field name="quotation_count" widget="statinfo" string="Quotations"/>
|
||||
</button>
|
||||
<button class="oe_stat_button" type="object" attrs="{'invisible': ['|', ('sale_order_count', '=', 0), ('type', '=', 'lead')]}"
|
||||
name="action_view_sale_order" icon="fa-usd">
|
||||
<div class="o_field_widget o_stat_info">
|
||||
<span class="o_stat_value"><field name="sale_amount_total" widget="monetary" options="{'currency_field': 'company_currency'}"/></span>
|
||||
<span class="o_stat_text"> Orders</span>
|
||||
<field name="sale_order_count" invisible="1"/>
|
||||
</div>
|
||||
</button>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- add needaction_menu_ref to reload quotation needaction when opportunity needaction is reloaded -->
|
||||
<record id="crm.crm_lead_opportunities" model="ir.actions.act_window">
|
||||
<field name="context">{'default_type': 'opportunity', 'default_user_id': uid}</field>
|
||||
</record>
|
||||
|
||||
<record id="sales_team.mail_activity_type_action_config_sales" model="ir.actions.act_window">
|
||||
<field name="domain">['|', ('res_model', '=', False), ('res_model', 'in', ['crm.lead', 'sale.order', 'res.partner', 'product.template', 'product.product'])]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="crm_team_salesteams_view_form_in_sale_crm" model="ir.ui.view">
|
||||
<field name="name">crm.team.form</field>
|
||||
<field name="model">crm.team</field>
|
||||
<field name="inherit_id" ref="crm.sales_team_form_view_in_crm"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//span[@name='opportunities']" position="attributes">
|
||||
<attribute name="invisible" value="0"/>
|
||||
</xpath>
|
||||
</data>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="res_partner_address_type" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.inherit.base</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group/group/span/field[@name='type']" position="attributes">
|
||||
<attribute name="groups">account.group_delivery_invoice_address</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='child_ids']//field[@name='type']" position="attributes">
|
||||
<attribute name="groups">account.group_delivery_invoice_address</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//group/group/span/field[@name='type']" position="after">
|
||||
<field name="type" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='child_ids']//field[@name='type']" position="after">
|
||||
<field name="type" invisible="1"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?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_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">
|
||||
<xpath expr="//group[@name='technical']" position="inside">
|
||||
<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"
|
||||
name="My Quotations"
|
||||
action="sale.action_quotations"
|
||||
parent="crm.crm_menu_sales"
|
||||
sequence="2"/>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue