2020-07-29 17:26:15 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2020-05-15 15:12:20 +02:00
|
|
|
<odoo>
|
|
|
|
<record id="view_move_line_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.move.line.form</field>
|
|
|
|
<field name="model">account.move.line</field>
|
2020-07-29 17:26:15 +02:00
|
|
|
<field name="inherit_id" ref="account.view_move_line_form" />
|
2020-05-15 15:12:20 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="quantity" position="before">
|
2020-07-29 17:26:15 +02:00
|
|
|
<field
|
2021-05-03 14:04:28 +02:00
|
|
|
name="sale_order_id"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="sale_line_id"
|
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
2020-05-15 15:12:20 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_move_line_tree" model="ir.ui.view">
|
|
|
|
<field name="name">account.move.line.tree</field>
|
|
|
|
<field name="model">account.move.line</field>
|
2020-07-29 17:26:15 +02:00
|
|
|
<field name="inherit_id" ref="account.view_move_line_tree" />
|
2020-05-15 15:12:20 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="partner_id" position="after">
|
2020-07-29 17:26:15 +02:00
|
|
|
<field
|
2021-05-03 14:04:28 +02:00
|
|
|
name="sale_order_id"
|
2021-08-10 10:21:16 +02:00
|
|
|
optional="show"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
|
|
|
<field
|
|
|
|
name="sale_line_id"
|
2021-08-10 10:21:16 +02:00
|
|
|
optional="hide"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
2020-05-15 15:12:20 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_account_move_line_filter" model="ir.ui.view">
|
|
|
|
<field name="name">Journal Items</field>
|
|
|
|
<field name="model">account.move.line</field>
|
2020-07-29 17:26:15 +02:00
|
|
|
<field name="inherit_id" ref="account.view_account_move_line_filter" />
|
2020-05-15 15:12:20 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="partner_id" position="after">
|
2020-07-29 17:26:15 +02:00
|
|
|
<field
|
2021-05-03 14:04:28 +02:00
|
|
|
name="sale_order_id"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
|
|
|
<field
|
2021-05-03 14:04:28 +02:00
|
|
|
name="sale_line_id"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
2020-05-15 15:12:20 +02:00
|
|
|
</field>
|
2021-05-03 14:04:28 +02:00
|
|
|
<filter name="group_by_partner" position="after">
|
2020-07-29 17:26:15 +02:00
|
|
|
<filter
|
2021-05-03 14:04:28 +02:00
|
|
|
name="group_by_sale_order"
|
2021-08-10 10:21:16 +02:00
|
|
|
string="Sale Order"
|
2020-07-29 17:26:15 +02:00
|
|
|
domain="[]"
|
2021-05-03 14:04:28 +02:00
|
|
|
context="{'group_by':'sale_order_id'}"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
|
|
|
<filter
|
2021-05-03 14:04:28 +02:00
|
|
|
name="group_by_sale_order_line"
|
2021-08-10 10:21:16 +02:00
|
|
|
string="Sale Order Line"
|
2020-07-29 17:26:15 +02:00
|
|
|
domain="[]"
|
|
|
|
context="{'group_by':'sale_line_id','so_line_info':True}"
|
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
2021-05-03 14:04:28 +02:00
|
|
|
</filter>
|
2020-05-15 15:12:20 +02:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
|
|
<field name="name">account.move.form</field>
|
|
|
|
<field name="model">account.move</field>
|
2020-07-29 17:26:15 +02:00
|
|
|
<field name="inherit_id" ref="account.view_move_form" />
|
2020-05-15 15:12:20 +02:00
|
|
|
<field name="arch" type="xml">
|
2020-07-29 17:26:15 +02:00
|
|
|
<xpath
|
|
|
|
expr="//field[@name='line_ids']/tree//field[@name='partner_id']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field
|
|
|
|
name="sale_line_id"
|
|
|
|
context="{'so_line_info': True}"
|
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
|
|
|
<field
|
2021-05-03 14:04:28 +02:00
|
|
|
name="sale_order_id"
|
2020-07-29 17:26:15 +02:00
|
|
|
groups="account_move_line_sale_info.group_account_move_sale_info"
|
|
|
|
/>
|
2020-05-15 15:12:20 +02:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</odoo>
|