| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<!-- Dedicated actions used in views below --> |
| 5 |
<record id="action_quotations_salesteams" model="ir.actions.act_window"> |
| 6 |
<field name="name">Quotations</field> |
| 7 |
<field name="res_model">sale.order</field> |
| 8 |
<field name="view_id" ref="sale.view_quotation_tree"/> |
| 9 |
<field name="view_mode">list,form,calendar,graph,kanban,pivot</field> |
| 10 |
<field name="context">{ |
| 11 |
'search_default_team_id': [active_id], |
| 12 |
'default_team_id': active_id, |
| 13 |
'show_address': 1, |
| 14 |
} |
| 15 |
</field> |
| 16 |
<field name="domain">[]</field> |
| 17 |
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_quotation"/> |
| 18 |
<field name="help" type="html"> |
| 19 |
<p class="o_view_nocontent_smiling_face"> |
| 20 |
Create a new quotation, the first step of a new sale! |
| 21 |
</p><p> |
| 22 |
Once the quotation is confirmed by the customer, it becomes a sales order.<br/> You will be able to create an invoice and collect the payment. |
| 23 |
</p> |
| 24 |
</field> |
| 25 |
</record> |
| 26 |
|
| 27 |
<record id="action_quotation_form" model="ir.actions.act_window"> |
| 28 |
<field name="name">New Quotation</field> |
| 29 |
<field name="res_model">sale.order</field> |
| 30 |
<field name="view_mode">form</field> |
| 31 |
<field name="context">{ |
| 32 |
'search_default_team_id': [active_id], |
| 33 |
'default_team_id': active_id, |
| 34 |
'default_user_id': uid, |
| 35 |
} |
| 36 |
</field> |
| 37 |
<field name="search_view_id" ref="sale_order_view_search_inherit_quotation"/> |
| 38 |
</record> |
| 39 |
|
| 40 |
<record id="action_orders_salesteams" model="ir.actions.act_window"> |
| 41 |
<field name="name">Sales Orders</field> |
| 42 |
<field name="res_model">sale.order</field> |
| 43 |
<field name="view_mode">list,form,calendar,graph,kanban,pivot</field> |
| 44 |
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_sale"/> |
| 45 |
<field name="domain">[('state','not in',('draft','sent','cancel'))]</field> |
| 46 |
<field name="context">{ |
| 47 |
'search_default_team_id': [active_id], |
| 48 |
'default_team_id': active_id, |
| 49 |
} |
| 50 |
</field> |
| 51 |
<field name="help" type="html"> |
| 52 |
<p class="o_view_nocontent_smiling_face"> |
| 53 |
Create a new quotation, the first step of a new sale! |
| 54 |
</p><p> |
| 55 |
Once the quotation is confirmed by the customer, it becomes a sales order.<br/> You will be able to create an invoice and collect the payment. |
| 56 |
</p> |
| 57 |
</field> |
| 58 |
</record> |
| 59 |
|
| 60 |
<record id="action_orders_to_invoice_salesteams" model="ir.actions.act_window"> |
| 61 |
<field name="name">Sales Orders</field> |
| 62 |
<field name="res_model">sale.order</field> |
| 63 |
<field name="view_mode">list,form,calendar,graph,kanban,pivot</field> |
| 64 |
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_sale"/> |
| 65 |
<field name="domain">[('invoice_status','=','to invoice')]</field> |
| 66 |
<field name="context">{ |
| 67 |
'search_default_team_id': [active_id], |
| 68 |
'default_team_id': active_id, |
| 69 |
} |
| 70 |
</field> |
| 71 |
</record> |
| 72 |
|
| 73 |
<!-- crm.team views (& actions) --> |
| 74 |
|
| 75 |
<record id="crm_team_salesteams_view_form" model="ir.ui.view"> |
| 76 |
<field name="name">crm.team.form</field> |
| 77 |
<field name="model">crm.team</field> |
| 78 |
<field name="priority">9</field> |
| 79 |
<field name="inherit_id" ref="sales_team.crm_team_view_form"/> |
| 80 |
<field name="arch" type="xml"> |
| 81 |
<field name="company_id" position="after"> |
| 82 |
<label for="invoiced_target"/> |
| 83 |
<div class="o_row" id="invoiced_target"> |
| 84 |
<field name="invoiced_target" widget="monetary" options="{'currency_field': 'currency_id'}" class="oe_inline"/> |
| 85 |
<span class="flex-grow-1">/ Month</span> |
| 86 |
</div> |
| 87 |
</field> |
| 88 |
</field> |
| 89 |
</record> |
| 90 |
|
| 91 |
<record id="crm_team_view_kanban_dashboard" model="ir.ui.view"> |
| 92 |
<field name="name">crm.team.view.kanban.dashboard.inherit.sale</field> |
| 93 |
<field name="model">crm.team</field> |
| 94 |
<field name="inherit_id" ref="sales_team.crm_team_view_kanban_dashboard"/> |
| 95 |
<field name="arch" type="xml"> |
| 96 |
<xpath expr="//templates" position="before"> |
| 97 |
<field name="invoiced_target"/> |
| 98 |
</xpath> |
| 99 |
|
| 100 |
<xpath expr="//div[@name='manage_view']" position="inside"> |
| 101 |
<div> |
| 102 |
<a name="%(action_orders_salesteams)d" type="action">Sales Orders</a> |
| 103 |
</div> |
| 104 |
<div groups="account.group_account_invoice"> |
| 105 |
<a name="%(action_invoice_salesteams)d" type="action">Invoices</a> |
| 106 |
</div> |
| 107 |
</xpath> |
| 108 |
|
| 109 |
<div name="o_team_kanban_report_separator" position="before"> |
| 110 |
<div name="sales_report"> |
| 111 |
<a name="%(action_order_report_so_salesteam)d" type="action"> |
| 112 |
Sales |
| 113 |
</a> |
| 114 |
</div> |
| 115 |
<div groups="account.group_account_invoice" name="invoices_report"> |
| 116 |
<a name="%(action_account_invoice_report_salesteam)d" type="action"> |
| 117 |
Invoices |
| 118 |
</a> |
| 119 |
</div> |
| 120 |
</div> |
| 121 |
</field> |
| 122 |
</record> |
| 123 |
|
| 124 |
<record id="sales_team.mail_activity_type_action_config_sales" model="ir.actions.act_window"> |
| 125 |
<field name="domain">['|', ('res_model', '=', False), ('res_model', 'in', ['sale.order', 'res.partner', 'product.template', 'product.product'])]</field> |
| 126 |
</record> |
| 127 |
|
| 128 |
</odoo> |