mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 15:32:04 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -4,9 +4,10 @@
|
|||
<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_mode">tree,kanban,form,graph</field>
|
||||
<field name="view_mode">list,kanban,form,graph</field>
|
||||
<field name="domain">[('partner_id', 'child_of', active_ids)]</field>
|
||||
<field name="context">{'default_partner_id': active_id}</field>
|
||||
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
|
||||
<field name="group_ids" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a new quotation, the first step of a new sale!
|
||||
|
|
@ -16,28 +17,6 @@
|
|||
</field>
|
||||
</record>
|
||||
|
||||
<record id="crm_lead_partner_kanban_view" model="ir.ui.view">
|
||||
<field name="name">res.partner.kanban.saleorder.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
||||
<field name="priority" eval="20"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="mobile" position="after">
|
||||
<field name="sale_order_count" groups="sales_team.group_sale_salesman"/>
|
||||
</field>
|
||||
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
|
||||
<a t-if="record.sale_order_count.value>0" data-type="object" data-name="action_view_sale_order"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
href="#" class="oe_kanban_action oe_kanban_action_a me-1">
|
||||
<span class="badge rounded-pill">
|
||||
<i class="fa fa-fw fa-usd" role="img" aria-label="Sale orders" title="Sales orders"/>
|
||||
<t t-out="record.sale_order_count.value"/>
|
||||
</span>
|
||||
</a>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="res_partner_view_buttons" model="ir.ui.view">
|
||||
<field name="name">res.partner.view.buttons</field>
|
||||
<field name="model">res.partner</field>
|
||||
|
|
@ -45,22 +24,23 @@
|
|||
<field name="priority" eval="3"/>
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button class="oe_stat_button" type="object" name="action_view_sale_order"
|
||||
<button
|
||||
class="oe_stat_button"
|
||||
type="action"
|
||||
name="sale.act_res_partner_2_sale_order"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
icon="fa-usd">
|
||||
<field string="Sales" name="sale_order_count" widget="statinfo"/>
|
||||
</button>
|
||||
</div>
|
||||
<xpath expr="//page[@name='internal_notes']//field[@name='comment']" position="after">
|
||||
<group groups="sales_team.group_sale_salesman">
|
||||
<group groups="sale.group_warning_sale" col="2">
|
||||
<separator string="Warning on the Sales Order" colspan="2"/>
|
||||
<field name="sale_warn" nolabel="1" colspan="2" required="1"/>
|
||||
<field name="sale_warn_msg" nolabel="1" string="Message" placeholder="Type a message..." colspan="2"
|
||||
attrs="{'required':[('sale_warn','!=', False), ('sale_warn','!=','no-message')], 'invisible':[('sale_warn','in',(False,'no-message'))]}"/>
|
||||
</group>
|
||||
<group name="warnings" position="inside">
|
||||
<group groups="sale.group_warning_sale" col="2">
|
||||
<separator string="Warning on Sales Orders and Invoices" colspan="2"/>
|
||||
<field name="sale_warn_msg"
|
||||
placeholder="e.g. This customer has reported recurring issues with previous orders."
|
||||
nolabel="1" colspan="2"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -81,13 +61,13 @@
|
|||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="fiscal_information" position="attributes">
|
||||
<attribute name="groups">account.group_account_invoice, sales_team.group_sale_salesman</attribute>
|
||||
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute>
|
||||
</group>
|
||||
<field name="property_payment_term_id" position="attributes">
|
||||
<attribute name="groups">account.group_account_invoice, sales_team.group_sale_salesman</attribute>
|
||||
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute>
|
||||
</field>
|
||||
<field name="property_supplier_payment_term_id" position="attributes">
|
||||
<attribute name="groups">account.group_account_invoice, sales_team.group_sale_salesman</attribute>
|
||||
<attribute name="groups">account.group_account_invoice,sales_team.group_sale_salesman</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue