2
0

[16.0][FIX] account_move_line_purchase_info: purchase order line name

This commit is contained in:
Andrea Stirpe 2023-06-06 14:13:55 +02:00
parent f684695a91
commit 7741880d65
2 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@
"author": "ForgeFlow, Odoo Community Association (OCA)", "author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools", "website": "https://github.com/OCA/account-financial-tools",
"category": "Generic", "category": "Generic",
"depends": ["purchase_stock"], "depends": ["purchase_stock", "base_view_inheritance_extension"],
"license": "AGPL-3", "license": "AGPL-3",
"data": [ "data": [
"security/account_security.xml", "security/account_security.xml",

View File

@ -80,7 +80,6 @@
> >
<field <field
name="purchase_line_id" name="purchase_line_id"
context="{'po_line_info': True}"
optional="hide" optional="hide"
groups="account_move_line_purchase_info.group_account_move_purchase_info" groups="account_move_line_purchase_info.group_account_move_purchase_info"
/> />
@ -96,7 +95,6 @@
> >
<field <field
name="purchase_line_id" name="purchase_line_id"
context="{'po_line_info': True}"
groups="account_move_line_purchase_info.group_account_move_purchase_info" groups="account_move_line_purchase_info.group_account_move_purchase_info"
/> />
<field <field
@ -104,6 +102,11 @@
groups="account_move_line_purchase_info.group_account_move_purchase_info" groups="account_move_line_purchase_info.group_account_move_purchase_info"
/> />
</xpath> </xpath>
<field name="line_ids" position="attributes">
<attribute name="context" operation="update">{
"po_line_info": True,
}</attribute>
</field>
</field> </field>
</record> </record>
</odoo> </odoo>