55 lines
3.0 KiB
XML
55 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="inherit_purchase_order_tree" model="ir.ui.view">
|
|
<field name="name">purchase.order.tree</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_view_tree"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='partner_ref']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='activity_ids']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='amount_untaxed']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='invoice_status']" position="attributes">
|
|
<attribute name="column_invisible">1</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='origin']" position="after">
|
|
<field name="json_display" widget="json_template"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
<record id="inherit_purchase_order_form" model="ir.ui.view">
|
|
<field name="name">purchase.order.form</field>
|
|
<field name="model">purchase.order</field>
|
|
<field name="inherit_id" ref="purchase.purchase_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='currency_id']" position="after">
|
|
<field name="document_ids" widget="preview_many2many"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='partner_id']" position="attributes">
|
|
<attribute name="domain">[('is_employee', '=', False)]</attribute>
|
|
</xpath>
|
|
<!-- <xpath expr="//page[@string='purchase_delivery_invoice']" position="after">-->
|
|
<!-- <page string="关联流程">-->
|
|
<!-- <field name="issue_library_approval_line_ids" readonly="1">-->
|
|
<!-- <tree editable="bottom">-->
|
|
<!-- <field name="issue_library_id" column_invisible="1"/>-->
|
|
<!-- <field name="res_model" column_invisible="1"/>-->
|
|
<!-- <field name="res_id" column_invisible="1"/>-->
|
|
<!-- <field name="code"/>-->
|
|
<!-- <field name="workflow_name"/>-->
|
|
<!-- <field name="approval_type"/>-->
|
|
<!-- <field name="approval_date"/>-->
|
|
<!-- <button name="open_record" type="object" string="详情" class="btn-primary"/>-->
|
|
<!-- </tree>-->
|
|
<!-- </field>-->
|
|
<!-- </page>-->
|
|
<!-- </xpath>-->
|
|
</field>
|
|
</record>
|
|
</odoo>
|