| 1 |
<?xml version="1.0"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="act_res_partner_2_sale_order" model="ir.actions.act_window"> |
| 5 |
<field name="name">Quotations and Sales</field> |
| 6 |
<field name="res_model">sale.order</field> |
| 7 |
<field name="view_mode">list,kanban,form,graph</field> |
| 8 |
<field name="domain">[('partner_id', 'child_of', active_ids)]</field> |
| 9 |
<field name="context">{'default_partner_id': active_id}</field> |
| 10 |
<field name="group_ids" eval="[(4, ref('sales_team.group_sale_salesman'))]"/> |
| 11 |
<field name="help" type="html"> |
| 12 |
<p class="o_view_nocontent_smiling_face"> |
| 13 |
Create a new quotation, the first step of a new sale! |
| 14 |
</p><p> |
| 15 |
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. |
| 16 |
</p> |
| 17 |
</field> |
| 18 |
</record> |
| 19 |
|
| 20 |
<record id="res_partner_view_buttons" model="ir.ui.view"> |
| 21 |
<field name="name">res.partner.view.buttons</field> |
| 22 |
<field name="model">res.partner</field> |
| 23 |
<field name="inherit_id" ref="base.view_partner_form" /> |
| 24 |
<field name="priority" eval="3"/> |
| 25 |
<field name="arch" type="xml"> |
| 26 |
<div name="button_box" position="inside"> |
| 27 |
<button |
| 28 |
class="oe_stat_button" |
| 29 |
type="action" |
| 30 |
name="sale.act_res_partner_2_sale_order" |
| 31 |
groups="sales_team.group_sale_salesman" |
| 32 |
icon="fa-usd"> |
| 33 |
<field string="Sales" name="sale_order_count" widget="statinfo"/> |
| 34 |
</button> |
| 35 |
</div> |
| 36 |
<group name="warnings" position="inside"> |
| 37 |
<group groups="sale.group_warning_sale" col="2"> |
| 38 |
<separator string="Warning on Sales Orders and Invoices" colspan="2"/> |
| 39 |
<field name="sale_warn_msg" |
| 40 |
placeholder="e.g. This customer has reported recurring issues with previous orders." |
| 41 |
nolabel="1" colspan="2"/> |
| 42 |
</group> |
| 43 |
</group> |
| 44 |
</field> |
| 45 |
</record> |
| 46 |
|
| 47 |
<record id="res_partner_view_form_payment_defaultcreditcard" model="ir.ui.view"> |
| 48 |
<field name="name">res.partner.view.form.payment.defaultcreditcard</field> |
| 49 |
<field name="model">res.partner</field> |
| 50 |
<field name="inherit_id" ref="payment.view_partners_form_payment_defaultcreditcard"/> |
| 51 |
<field name="arch" type="xml"> |
| 52 |
<button name="%(payment.action_payment_token)d" position="attributes"> |
| 53 |
<attribute name="groups">sales_team.group_sale_salesman</attribute> |
| 54 |
</button> |
| 55 |
</field> |
| 56 |
</record> |
| 57 |
|
| 58 |
<record id="res_partner_view_form_property_inherit" model="ir.ui.view"> |
| 59 |
<field name="name">res.partner.view.form.property.inherit</field> |
| 60 |
<field name="model">res.partner</field> |
| 61 |
<field name="inherit_id" ref="account.view_partner_property_form"/> |
| 62 |
<field name="arch" type="xml"> |
| 63 |
<group name="fiscal_information" position="attributes"> |
| 64 |
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute> |
| 65 |
</group> |
| 66 |
<field name="property_payment_term_id" position="attributes"> |
| 67 |
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute> |
| 68 |
</field> |
| 69 |
<field name="property_supplier_payment_term_id" position="attributes"> |
| 70 |
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute> |
| 71 |
</field> |
| 72 |
</field> |
| 73 |
</record> |
| 74 |
|
| 75 |
</odoo> |