Browse Source

[ADD] emc_taxshelter_report : demo datas

pull/68/head
Elouan Le Bars 5 years ago
parent
commit
e4a42b6ca1
  1. 3
      easy_my_coop_taxshelter_report/__manifest__.py
  2. 40
      easy_my_coop_taxshelter_report/demo/tax_shelter_demo.xml

3
easy_my_coop_taxshelter_report/__manifest__.py

@ -40,5 +40,8 @@
'data/mail_template_data.xml', 'data/mail_template_data.xml',
'data/scheduler_data.xml', 'data/scheduler_data.xml',
], ],
'demo': [
'demo/tax_shelter_demo.xml',
],
'installable': True, 'installable': True,
} }

40
easy_my_coop_taxshelter_report/demo/tax_shelter_demo.xml

@ -0,0 +1,40 @@
<?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="tax_shelter_declaration_1_demo" model="tax.shelter.declaration">
<field name="name">2019</field>
<field name="fiscal_year">2018</field>
<field name="date_from">2018-01-01</field>
<field name="date_to">2018-12-31</field>
<field name="month_from">January</field>
<field name="month_to">December</field>
<field name="tax_shelter_percentage">45</field>
<field name="state">validated</field>
<field name="tax_shelter_capital_limit">143875.00</field>
<field name="previously_subscribed_capital">0.00</field>
</record>
<record id="tax_shelter_certificate_1_demo" model="tax.shelter.certificate">
<field name="cooperator_number">1</field>
<field name="partner_id" ref="easy_my_coop.res_partner_cooperator_1_demo"/>
<field name="declaration_id" ref="easy_my_coop_taxshelter_report.tax_shelter_declaration_1_demo"/>
<field name="state">sent</field>
</record>
<record id="certificate_line_1_demo" model="certificate.line">
<field name="tax_shelter_certificate" ref="easy_my_coop_taxshelter_report.tax_shelter_certificate_1_demo"/>
<field name="share_type" ref="easy_my_coop.product_product_share_type_1_demo"/>
<field name="share_unit_price">25</field>
<field name="quantity">12</field>
<field name="transaction_date" eval="datetime.now() - timedelta(days=45)"/>
<field name="tax_shelter" eval="True" />
<field name="type">subscribed</field>
</record>
<record id="tax_shelter_certificate_1_demo" model="tax.shelter.certificate">
<field name="lines" eval="[(4, ref('certificate_line_1_demo'))]"/>
</record>
</odoo>
Loading…
Cancel
Save