40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
The Documents app does not ship a regular form view for
|
|
documents.document; editing happens in the side panel of the
|
|
kanban/list views. We therefore add the new fields to the
|
|
kanban + list views and rely on a server action (defined in
|
|
data/server_actions_data.xml) to expose the "Create Invoice"
|
|
workflow from the Actions menu.
|
|
-->
|
|
|
|
<record id="view_documents_document_kanban_inherit_fusion_acc"
|
|
model="ir.ui.view">
|
|
<field name="name">documents.document.kanban.inherit.fusion.acc</field>
|
|
<field name="model">documents.document</field>
|
|
<field name="inherit_id" ref="documents.document_view_kanban"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='name']" position="after">
|
|
<field name="is_invoice_candidate"/>
|
|
<field name="move_id"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_documents_document_list_inherit_fusion_acc"
|
|
model="ir.ui.view">
|
|
<field name="name">documents.document.list.inherit.fusion.acc</field>
|
|
<field name="model">documents.document</field>
|
|
<field name="inherit_id" ref="documents.documents_view_list_main"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='name']" position="after">
|
|
<field name="is_invoice_candidate" optional="hide"/>
|
|
<field name="move_id"
|
|
string="Linked Invoice"
|
|
optional="hide"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|