<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2026 Criptomart
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <!-- Add origin_text field to product.supplierinfo form view -->
    <record id="product_supplierinfo_form_view_origin_text" model="ir.ui.view">
        <field name="name">product.supplierinfo.form.origin.text</field>
        <field name="model">product.supplierinfo</field>
        <field name="inherit_id" ref="product.product_supplierinfo_form_view" />
        <field name="arch" type="xml">
            <field name="product_code" position="after">
                <field
                    name="origin_text"
                    placeholder="e.g., Valencia, Huerta de..., Spain"
                />
            </field>
        </field>
    </record>

    <!-- Add origin_text field to supplierinfo tree in product form -->
    <record id="product_supplierinfo_tree_view_origin_text" model="ir.ui.view">
        <field name="name">product.supplierinfo.tree.origin.text</field>
        <field name="model">product.supplierinfo</field>
        <field name="inherit_id" ref="product.product_supplierinfo_tree_view" />
        <field name="arch" type="xml">
            <field name="product_code" position="after">
                <field name="origin_text" optional="show" />
            </field>
        </field>
    </record>
</odoo>
