purchase_rfq_comparison/views/purchase_order_alternative_views.xml
2025-10-17 09:19:12 +07:00

35 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Extend Alternative Purchase Orders list to show comparison fields -->
<record id="purchase_order_alternative_list_inherit_comparison" model="ir.ui.view">
<field name="name">purchase.order.alternative.list.inherit.comparison</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase_requisition.purchase_order_form_inherit"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='alternative_po_ids']//field[@name='amount_total']" position="after">
<field name="payment_term_id" string="Payment Terms" optional="show"/>
<field name="comparison_notes" string="Notes" optional="show"/>
<field name="garansi" string="Garansi" optional="show"/>
<field name="landed_cost" string="Landed Cost" optional="show"/>
<field name="landed_cost_tag_ids" widget="many2many_tags" string="LC Tags" optional="show"/>
</xpath>
</field>
</record>
<!-- Extend Purchase Order Line Compare tree to show comparison fields for detailed comparison -->
<record id="purchase_order_line_compare_tree_inherit_comparison" model="ir.ui.view">
<field name="name">purchase.order.line.compare.list.inherit.comparison</field>
<field name="model">purchase.order.line</field>
<field name="inherit_id" ref="purchase_requisition.purchase_order_line_compare_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="order_payment_term_id" string="Payment Terms" optional="show"/>
<field name="order_comparison_notes" string="Notes" optional="show"/>
<field name="order_garansi" string="Garansi" optional="show"/>
<field name="order_landed_cost" string="Landed Cost" optional="show"/>
<field name="order_landed_cost_tag_ids" widget="many2many_tags" string="LC Tags" optional="show"/>
</xpath>
</field>
</record>
</odoo>