Skip to content

Commit

Permalink
[ADD] product_replenishment_cost: create demo data
Browse files Browse the repository at this point in the history
closes #518

Related: ingadhoc/miscellaneous#121
Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
  • Loading branch information
vib-adhoc committed Aug 1, 2023
1 parent c381875 commit c716b6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions product_replenishment_cost/__manifest__.py
Expand Up @@ -21,5 +21,8 @@
'wizards/product_update_from_replenishment_cost_wizard_views.xml',
'security/ir.model.access.csv',
],
'demo': [
'demo/replenishment_cost_demo.xml',
],
'installable': True,
}
12 changes: 12 additions & 0 deletions product_replenishment_cost/demo/replenishment_cost_demo.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="rule_1" model="product.replenishment_cost.rule">
<field name="name">Rule 1</field>
</record>

<record id="rule_item_1" model="product.replenishment_cost.rule.item">
<field name="name">Customs</field>
<field name="percentage_amount">10.00</field>
<field name="replenishment_cost_rule_id" ref="product_replenishment_cost.rule_1"/>
</record>
</odoo>

0 comments on commit c716b6c

Please sign in to comment.