Browse Source

[ADD] b_easy_my_coop : share_lines demo datas

pull/125/head
Elouan Le Bars 5 years ago
parent
commit
14f77abf68
  1. 3
      beesdoo_easy_my_coop/__openerp__.py
  2. 59
      beesdoo_easy_my_coop/demo/share_lines.xml

3
beesdoo_easy_my_coop/__openerp__.py

@ -29,6 +29,9 @@
'views/subscription_request.xml', 'views/subscription_request.xml',
'views/subscription_templates.xml', 'views/subscription_templates.xml',
], ],
'demo': [
'demo/share_lines.xml',
],
'auto_install': True, 'auto_install': True,
# only loaded in demonstration mode # only loaded in demonstration mode
} }

59
beesdoo_easy_my_coop/demo/share_lines.xml

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="product_product_share_type_1_demo" model="product.product">
<field name="product_tmpl_id" ref="beesdoo_easy_my_coop.share_a"/>
<field name="default_code">share_a</field>
</record>
<record id="share_line_1_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">2</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_1_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
<record id="share_line_2_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">4</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_2_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
<record id="share_line_3_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">2</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_3_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
<record id="share_line_4_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">6</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_4_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
<record id="share_line_5_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">2</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_5_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
<record id="share_line_6_demo" model="share.line">
<field name="share_product_id" ref="product_product_share_type_1_demo"/>
<field name="share_number">4</field>
<field name="share_unit_price">50</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_6_demo"/>
<field name="effective_date" eval="datetime.now() - timedelta(days=120)"/>
</record>
</odoo>
Loading…
Cancel
Save