mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 13:12:07 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -16,12 +16,12 @@
|
|||
</record>
|
||||
|
||||
<record id="account_invoice_view_tree" model="ir.ui.view">
|
||||
<field name="name">account.move.tree.inherit.sale</field>
|
||||
<field name="name">account.move.list.inherit.sale</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_invoice_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="invoice_user_id" position="after">
|
||||
<field name="team_id" invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund','out_receipt')" optional="hide"/>
|
||||
<field name="team_id" column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')" optional="hide"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -32,14 +32,14 @@
|
|||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='sale_info_group']/field[@name='invoice_user_id']" position="after">
|
||||
<field name="team_id" kanban_view_ref="%(sales_team.crm_team_view_kanban)s"/>
|
||||
<field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"/>
|
||||
</xpath>
|
||||
<xpath expr="//group[@id='other_tab_group']" position="inside">
|
||||
<group string="Marketing"
|
||||
name="utm_link"
|
||||
groups="base.group_no_one"
|
||||
attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}">
|
||||
<field name="campaign_id" options="{'create_name_field': 'title', 'always_reload': True}"/>
|
||||
invisible="move_type not in ('out_invoice', 'out_refund')">
|
||||
<field name="campaign_id" options="{'create_name_field': 'title'}"/>
|
||||
<field name="medium_id"/>
|
||||
<field name="source_id"/>
|
||||
</group>
|
||||
|
|
@ -49,17 +49,31 @@
|
|||
name="action_view_source_sale_orders"
|
||||
type="object"
|
||||
icon="fa-pencil-square-o"
|
||||
attrs="{'invisible': ['|', ('sale_order_count', '=', 0), ('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}">
|
||||
invisible="sale_order_count == 0 or move_type not in ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt')">
|
||||
<field string="Sale Orders" name="sale_order_count" widget="statinfo"/>
|
||||
</button>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='invoice_line_ids']/list" position="inside">
|
||||
<field name="is_downpayment" column_invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='invoice_line_ids']/list/field[@name='product_id']" position="attributes">
|
||||
<attribute name="readonly">is_downpayment</attribute>
|
||||
</xpath>
|
||||
<header position="after">
|
||||
<div class="alert alert-warning" role="alert" invisible="not sale_warning_text or move_type != 'out_invoice'">
|
||||
<field name="sale_warning_text" class="fw-bold"/>
|
||||
</div>
|
||||
</header>
|
||||
<list name="journal_items" position="attributes">
|
||||
<attribute name="decoration-warning" add="(sale_line_warn_msg and move_type == 'out_invoice')" separator=" or "/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_invoice_salesteams" model="ir.actions.act_window">
|
||||
<field name="name">Invoices</field>
|
||||
<field name="res_model">account.move</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
<field name="view_mode">list,form,kanban</field>
|
||||
<field name="view_id" ref="account.view_move_tree"/>
|
||||
<field name="domain">[
|
||||
('state', '=', 'posted'),
|
||||
|
|
@ -84,7 +98,7 @@
|
|||
|
||||
<record id="action_invoice_salesteams_view_tree" model="ir.actions.act_window.view">
|
||||
<field name="sequence">1</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="act_window_id" ref="sale.action_invoice_salesteams"/>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue