2
0
account-financial-tools/account_move_line_purchase_info/views/account_move_view.xml

70 lines
3.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2017-03-14 11:47:48 +01:00
<odoo>
2017-03-14 11:47:48 +01:00
<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>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="quantity" position="before">
2019-07-29 12:32:21 +02:00
<field name="purchase_id"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
2017-03-14 11:47:48 +01:00
<field name="purchase_line_id"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
</field>
2017-03-14 11:47:48 +01:00
</field>
</record>
2017-03-14 11:47:48 +01:00
<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>
<field name="inherit_id" ref="account.view_move_line_tree"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
2019-07-29 12:32:21 +02:00
<field name="purchase_id"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
2017-03-14 11:47:48 +01:00
<field name="purchase_line_id"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
</field>
2017-03-14 11:47:48 +01:00
</field>
</record>
2017-03-14 11:47:48 +01:00
<record id="view_account_move_line_filter" model="ir.ui.view">
<field name="name">Journal Items</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
2019-07-29 12:32:21 +02:00
<field name="purchase_id"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
2017-03-14 11:47:48 +01:00
<field name="purchase_line_id"
2019-07-29 12:32:21 +02:00
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
</field>
<filter name="group_by_partner" position="after">
<filter name="group_by_purchase_order" string="Purchase Order" domain="[]"
2019-07-29 12:32:21 +02:00
context="{'group_by':'purchase_id'}"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
<filter name="group_by_purchase_order_line" string="Purchase Order Line" domain="[]"
2019-07-29 12:32:21 +02:00
context="{'group_by':'purchase_line_id','po_line_info':True}"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
</filter>
2017-03-14 11:47:48 +01:00
</field>
</record>
2017-03-14 11:47:48 +01:00
<record id="view_move_form" model="ir.ui.view">
<field name="name">account.move.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
2019-07-29 12:32:21 +02:00
<xpath expr="//field[@name='line_ids']/tree//field[@name='partner_id']" position="after">
<field name="purchase_line_id" context="{'po_line_info': True}"
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
<field name="purchase_id"
2017-03-14 11:47:48 +01:00
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
</xpath>
</field>
</record>
2017-03-14 11:47:48 +01:00
</odoo>