2
0

pre-commit update

This commit is contained in:
OCA-git-bot 2020-03-14 11:47:13 +01:00 committed by Andrea Stirpe
parent fdf4f316bf
commit 62f1ea31d9
2 changed files with 59 additions and 39 deletions

View File

@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8" ?>
<odoo> <odoo>
<record id="group_account_move_purchase_info" model="res.groups"> <record id="group_account_move_purchase_info" model="res.groups">
<field name="name">Purchase info in Journal Items</field> <field name="name">Purchase info in Journal Items</field>
<field name="category_id" ref="base.module_category_hidden"/> <field name="category_id" ref="base.module_category_hidden" />
<field name="users" eval="[(4, ref('base.user_admin'))]"/> <field name="users" eval="[(4, ref('base.user_admin'))]" />
</record> </record>
</odoo> </odoo>

View File

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