Skip to content

Commit

Permalink
create demo data for generationkwh.right.usage.line and generationkwh…
Browse files Browse the repository at this point in the history
….invoice.line.owner
  • Loading branch information
MarJene committed Feb 17, 2022
1 parent 4eb58e4 commit 29c2965
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion som_generationkwh/tests/generation_data_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,45 @@
<field name="account_id" ref="account.a_recv"/>
<field name="origin_date_invoice">2015-10-09</field>
<field name="reference">GISCE</field>
</record>
</record>
<record id="linia_factura_01" model="giscedata.facturacio.factura.linia">
<field name="name">Linia 01</field>
<field name="product_id" ref="giscedata_polissa.p1_e_tarifa_20TD_product_product"/>
<field name="account_id" search="[('code', '=', '700000')]" model="account.account"/>
<field name="tipus">energia</field>
<field name="price_unit_multi" eval="10.0"/>
<field name="multi" eval="1"/>
<!--<field name="uom_multi_id"></field>-->
<field name="factura_id" ref="giscedata_facturacio.factura_0001"/>
<!--<field name="invoice_line_id"></field>-->
<!--<field name="cosfi"></field>-->
<field name="data_desde">2016-01-01</field>
<!--<field name="data_fins"></field>-->
</record>
<record id="linia_factura_gkwh_0001" model="giscedata.facturacio.factura.linia">
<field name="name">Linia 1 GKWH</field>
<field name="product_id" ref="p1_gkwh_tarifa_20TD"/>
<field name="tipus">energia</field>
<field name="price_unit_multi" eval="8.0"/>
<field name="multi" eval="1"/>
<field name="account_id" search="[('code', '=', '700000')]" model="account.account"/>
<!--<field name="uom_multi_id"></field>-->
<field name="factura_id" ref="giscedata_facturacio.factura_0001"/>
<!--<field name="invoice_line_id"></field>-->
<!--<field name="cosfi"></field>-->
<field name="data_desde">2016-01-01</field>
<!--<field name="data_fins"></field>-->
</record>
<record id="lineowner_001" model="generationkwh.invoice.line.owner">
<field name="factura_id" ref="giscedata_facturacio.factura_0001"/>
<field name="factura_line_id" ref="linia_factura_gkwh_0001"/>
<field name="owner_id" ref="res_partner_inversor1"/>
<field name="saving_gkw_amount">0.5</field>
</record>
<record id="right_usage_001" model="generationkwh.right.usage.line">
<field name="datetime">2016-01-01 06:00:00</field>
<field name="quantity">1</field>
<field name="line_owner" ref="lineowner_001"/>
</record>
</data>
</openerp>

0 comments on commit 29c2965

Please sign in to comment.