<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <!-- ============================================ -->
    <!-- Product Categories (Categorías de Producto) -->
    <!-- ============================================ -->

    <record id="categ_fruta_fresca" model="product.category">
        <field name="name">Fruta Fresca</field>
        <field name="parent_id" ref="product.product_category_all" />
    </record>

    <record id="categ_verdura_fresca" model="product.category">
        <field name="name">Verdura Fresca</field>
        <field name="parent_id" ref="product.product_category_all" />
    </record>

    <record id="categ_lacteos" model="product.category">
        <field name="name">Lácteos</field>
        <field name="parent_id" ref="product.product_category_all" />
    </record>

    <record id="categ_pan_reposteria" model="product.category">
        <field name="name">Pan y Repostería</field>
        <field name="parent_id" ref="product.product_category_all" />
    </record>

    <record id="categ_conservas" model="product.category">
        <field name="name">Conservas</field>
        <field name="parent_id" ref="product.product_category_all" />
    </record>

    <!-- ============================================ -->
    <!-- Products (Productos) -->
    <!-- ============================================ -->

    <!-- Frutas -->
    <record id="product_manzana_ecologica" model="product.product">
        <field name="name">Manzana Ecológica</field>
        <field name="default_code">MANZ-ECO</field>
        <field name="categ_id" ref="categ_fruta_fresca" />
        <field name="type">consu</field>
        <field name="list_price">2.50</field>
        <field name="standard_price">1.20</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_naranja_valenciana" model="product.product">
        <field name="name">Naranja Valenciana</field>
        <field name="default_code">NARA-VAL</field>
        <field name="categ_id" ref="categ_fruta_fresca" />
        <field name="type">consu</field>
        <field name="list_price">2.80</field>
        <field name="standard_price">1.50</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_platano_canarias" model="product.product">
        <field name="name">Plátano de Canarias</field>
        <field name="default_code">PLAT-CAN</field>
        <field name="categ_id" ref="categ_fruta_fresca" />
        <field name="type">consu</field>
        <field name="list_price">3.20</field>
        <field name="standard_price">1.80</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <!-- Verduras -->
    <record id="product_tomate_ecologico" model="product.product">
        <field name="name">Tomate Ecológico</field>
        <field name="default_code">TOMA-ECO</field>
        <field name="categ_id" ref="categ_verdura_fresca" />
        <field name="type">consu</field>
        <field name="list_price">3.50</field>
        <field name="standard_price">1.80</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_lechuga_km0" model="product.product">
        <field name="name">Lechuga Km 0</field>
        <field name="default_code">LECH-KM0</field>
        <field name="categ_id" ref="categ_verdura_fresca" />
        <field name="type">consu</field>
        <field name="list_price">1.50</field>
        <field name="standard_price">0.80</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_pimiento_verde" model="product.product">
        <field name="name">Pimiento Verde</field>
        <field name="default_code">PIMI-VER</field>
        <field name="categ_id" ref="categ_verdura_fresca" />
        <field name="type">consu</field>
        <field name="list_price">4.20</field>
        <field name="standard_price">2.10</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <!-- Lácteos -->
    <record id="product_leche_entera" model="product.product">
        <field name="name">Leche Entera Artesana</field>
        <field name="default_code">LECH-ENT</field>
        <field name="categ_id" ref="categ_lacteos" />
        <field name="type">consu</field>
        <field name="list_price">1.80</field>
        <field name="standard_price">1.00</field>
        <field name="uom_id" ref="uom.product_uom_litre" />
        <field name="uom_po_id" ref="uom.product_uom_litre" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_yogur_natural" model="product.product">
        <field name="name">Yogur Natural (Pack 4)</field>
        <field name="default_code">YOGU-NAT</field>
        <field name="categ_id" ref="categ_lacteos" />
        <field name="type">consu</field>
        <field name="list_price">3.20</field>
        <field name="standard_price">1.80</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_queso_idiazabal" model="product.product">
        <field name="name">Queso Idiazabal D.O.</field>
        <field name="default_code">QUES-IDI</field>
        <field name="categ_id" ref="categ_lacteos" />
        <field name="type">consu</field>
        <field name="list_price">25.00</field>
        <field name="standard_price">15.00</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_purchase')])]" />
    </record>

    <!-- Pan y Repostería -->
    <record id="product_pan_integral" model="product.product">
        <field name="name">Pan Integral Artesano</field>
        <field name="default_code">PAN-INT</field>
        <field name="categ_id" ref="categ_pan_reposteria" />
        <field name="type">consu</field>
        <field name="list_price">3.50</field>
        <field name="standard_price">1.80</field>
        <field name="uom_id" ref="uom.product_uom_kgm" />
        <field name="uom_po_id" ref="uom.product_uom_kgm" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_4_purchase')])]" />
    </record>

    <record id="product_goxua" model="product.product">
        <field name="name">Goxua (6 unidades)</field>
        <field name="default_code">POST-GOX</field>
        <field name="categ_id" ref="categ_pan_reposteria" />
        <field name="type">consu</field>
        <field name="list_price">8.50</field>
        <field name="standard_price">4.50</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_purchase')])]" />
    </record>

    <!-- Conservas -->
    <record id="product_bonito_conserva" model="product.product">
        <field name="name">Bonito del Norte en Aceite</field>
        <field name="default_code">CONS-BON</field>
        <field name="categ_id" ref="categ_conservas" />
        <field name="type">consu</field>
        <field name="list_price">12.50</field>
        <field name="standard_price">7.00</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_purchase')])]" />
    </record>

    <record id="product_pimientos_piquillo" model="product.product">
        <field name="name">Pimientos del Piquillo D.O.</field>
        <field name="default_code">CONS-PIQ</field>
        <field name="categ_id" ref="categ_conservas" />
        <field name="type">consu</field>
        <field name="list_price">5.80</field>
        <field name="standard_price">3.20</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="True" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_sale')])]" />
        <field name="supplier_taxes_id" eval="[(6, 0, [ref('demo_tax_iva_10_purchase')])]" />
    </record>

    <!-- Producto de envío a domicilio (servicio) -->
    <record id="product_home_delivery_service" model="product.product">
        <field name="name">Servicio de Envío a Domicilio</field>
        <field name="default_code">SRV-DELIV</field>
        <field name="categ_id" ref="product.product_category_all" />
        <field name="type">service</field>
        <field name="list_price">5.00</field>
        <field name="standard_price">0.00</field>
        <field name="uom_id" ref="uom.product_uom_unit" />
        <field name="uom_po_id" ref="uom.product_uom_unit" />
        <field name="sale_ok" eval="True" />
        <field name="purchase_ok" eval="False" />
        <field name="taxes_id" eval="[(6, 0, [ref('demo_tax_iva_21_sale')])]" />
    </record>

    <!-- ============================================ -->
    <!-- Supplier Info (Información de Proveedores) -->
    <!-- ============================================ -->

    <!-- Baserritarra provee frutas y verduras -->
    <record id="supplierinfo_manzana_baserritarra" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_baserritarra" />
        <field name="product_id" ref="product_manzana_ecologica" />
        <field name="price">1.20</field>
        <field name="min_qty">10.0</field>
        <field name="delay">2</field>
    </record>

    <record id="supplierinfo_tomate_baserritarra" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_baserritarra" />
        <field name="product_id" ref="product_tomate_ecologico" />
        <field name="price">1.80</field>
        <field name="min_qty">5.0</field>
        <field name="delay">2</field>
    </record>

    <!-- Bio Zikloa provee productos ecológicos -->
    <record id="supplierinfo_naranja_biozikloa" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_biozikloa" />
        <field name="product_id" ref="product_naranja_valenciana" />
        <field name="price">1.50</field>
        <field name="min_qty">10.0</field>
        <field name="delay">3</field>
    </record>

    <record id="supplierinfo_platano_biozikloa" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_biozikloa" />
        <field name="product_id" ref="product_platano_canarias" />
        <field name="price">1.80</field>
        <field name="min_qty">10.0</field>
        <field name="delay">3</field>
    </record>

    <!-- Artizarra provee lácteos -->
    <record id="supplierinfo_leche_artizarra" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_artizarra" />
        <field name="product_id" ref="product_leche_entera" />
        <field name="price">1.00</field>
        <field name="min_qty">20.0</field>
        <field name="delay">1</field>
    </record>

    <record id="supplierinfo_yogur_artizarra" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_artizarra" />
        <field name="product_id" ref="product_yogur_natural" />
        <field name="price">1.80</field>
        <field name="min_qty">10.0</field>
        <field name="delay">1</field>
    </record>

    <record id="supplierinfo_queso_artizarra" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_artizarra" />
        <field name="product_id" ref="product_queso_idiazabal" />
        <field name="price">15.00</field>
        <field name="min_qty">2.0</field>
        <field name="delay">7</field>
    </record>

    <!-- Auzoko Okindegia provee pan -->
    <record id="supplierinfo_pan_okindegia" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_okindegia" />
        <field name="product_id" ref="product_pan_integral" />
        <field name="price">1.80</field>
        <field name="min_qty">5.0</field>
        <field name="delay">1</field>
    </record>

    <record id="supplierinfo_goxua_okindegia" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_okindegia" />
        <field name="product_id" ref="product_goxua" />
        <field name="price">4.50</field>
        <field name="min_qty">2.0</field>
        <field name="delay">1</field>
    </record>

    <!-- Hiruki provee conservas -->
    <record id="supplierinfo_bonito_hiruki" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_hiruki" />
        <field name="product_id" ref="product_bonito_conserva" />
        <field name="price">7.00</field>
        <field name="min_qty">6.0</field>
        <field name="delay">5</field>
    </record>

    <record id="supplierinfo_piquillo_hiruki" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_hiruki" />
        <field name="product_id" ref="product_pimientos_piquillo" />
        <field name="price">3.20</field>
        <field name="min_qty">12.0</field>
        <field name="delay">5</field>
    </record>

    <!-- Ekotalde provee verduras -->
    <record id="supplierinfo_lechuga_ekotalde" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_ekotalde" />
        <field name="product_id" ref="product_lechuga_km0" />
        <field name="price">0.80</field>
        <field name="min_qty">10.0</field>
        <field name="delay">1</field>
    </record>

    <record id="supplierinfo_pimiento_ekotalde" model="product.supplierinfo">
        <field name="partner_id" ref="supplier_ekotalde" />
        <field name="product_id" ref="product_pimiento_verde" />
        <field name="price">2.10</field>
        <field name="min_qty">5.0</field>
        <field name="delay">1</field>
    </record>

</odoo>
