Browse Source

[UPD] update agreement demo data with compulsory fields

pull/339/head
Yves Goldberg 6 years ago
parent
commit
e3be882a30
  1. 1
      agreement_legal/__manifest__.py
  2. 148
      agreement_legal/data/demo.xml

1
agreement_legal/__manifest__.py

@ -18,6 +18,7 @@
"data/module_category.xml",
"data/agreement_stage.xml",
"data/agreement_type.xml",
"data/demo.xml",
"security/res_groups.xml",
"security/ir.model.access.csv",
"report/agreement.xml",

148
agreement_legal/data/demo.xml

@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2019 Ygol Internetwork (yves@ygol.com)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market1')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market1" model="agreement">
<field name="description">Hardware IT (C2C-IT0042)</field>
<field name="agreement_type_id">1</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market1')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market2')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market2" model="agreement">
<field name="description">Fiber access office Lausanne (C2C-IT0043)</field>
<field name="agreement_type_id">2</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market2')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market3')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market3" model="agreement">
<field name="description">Vétérinaire (AGR-VETO001)</field>
<field name="agreement_type_id">3</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market3')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market4')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market4" model="agreement">
<field name="description">Wazo IPBX deployment and maintenance (AGR-TEL001)</field>
<field name="agreement_type_id">3</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market4')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market5')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market5" model="agreement">
<field name="description">SIP Phones supply (BUY-VOIP012)</field>
<field name="agreement_type_id">1</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market5')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market6')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
<record id="agreement.market6" model="agreement">
<field name="description">SIP-ISDN gateways (BUY-VOIP013)</field>
<field name="agreement_type_id">2</field>
</record>
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'agreement'), ('name', '=', 'market6')]"
/>
</function>
<value eval="{'noupdate': True}" />
</function>
</odoo>
Loading…
Cancel
Save