Skip to content

Commit

Permalink
[ADD]account_invoice_view_adj
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhehe1995 committed Nov 6, 2023
1 parent f3c6d09 commit f270e42
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Empty file.
13 changes: 13 additions & 0 deletions account_invoice_view_adj/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 Quartile Limited
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice View Adjust",
"category": "Invoicing",
"license": "AGPL-3",
"author": "Quartile Limited",
"website": "https://www.quartile.co",
"version": "11.0.1.0.0",
"depends": ['base', 'account'],
"data": ["views/account_invoice_view_adj.xml"],
"installable": True,
}
17 changes: 17 additions & 0 deletions account_invoice_view_adj/views/account_invoice_view_adj.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<odoo>
<data>
<!-- Inherit the list view to add the 'Responsible' field -->
<record id="view_account_invoice_supplier_tree_inherit" model="ir.ui.view">
<field name="name">account.invoice.supplier.tree.inherit</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_tree"/>
<field name="arch" type="xml">
<xpath expr="//tree/field[@name='state']" position="before">
<!-- Adding the 'Responsible' field -->
<field name="user_id" string="担当者"/>
</xpath>
</field>
</record>
</data>
</odoo>

0 comments on commit f270e42

Please sign in to comment.