Files

52 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<!-- Recurring storable products -->
<record id="detergent_order_pricing_1" model="product.pricelist.item">
<field name="pricelist_id" eval="False"/>
<field name="plan_id" ref="sale_subscription.subscription_plan_month"/>
<field name="fixed_price" eval="10"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="detergent_order_pricing_2" model="product.pricelist.item">
<field name="pricelist_id" eval="False"/>
<field name="plan_id" ref="sale_subscription.subscription_plan_6_month"/>
<field name="fixed_price" eval="10"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="detergent_order_pricing_3" model="product.pricelist.item">
<field name="pricelist_id" eval="False"/>
<field name="plan_id" ref="sale_subscription.subscription_plan_year"/>
<field name="fixed_price" eval="10"/>
<field name="currency_id" ref="base.USD"/>
</record>
<record id="product_recurring_detergent" model="product.product">
<field name="name">Detergent (SUB)</field>
<field name="recurring_invoice">True</field>
<field name="categ_id" ref="product.product_category_services"/>
<field name="is_storable" eval="True"/>
<field name="list_price">0.0</field>
<field name="invoice_policy">order</field>
<field name="uom_id" ref="uom.product_uom_unit"/>
<field name="subscription_rule_ids"
eval="[(6,0,[ref('detergent_order_pricing_1'), ref('detergent_order_pricing_2'), ref('detergent_order_pricing_3')])]"/>
</record>
<record id="stock_inventory_detergent" model="stock.quant" forcecreate="0">
<field name="product_id" ref="product_recurring_detergent"/>
<field name="inventory_quantity">25.0</field>
<field name="location_id" model="stock.location" eval="obj().env.ref('stock.warehouse0').lot_stock_id.id"/>
</record>
<function model="stock.quant" name="action_apply_inventory">
<function eval="[[('id', '=', ref('stock_inventory_detergent'))]]" model="stock.quant" name="search"/>
</function>
</data>
</odoo>