Browse Source

[FIX] b_worker_status: Demo data

pull/133/head
Rémy Taymans 5 years ago
parent
commit
d56c5aa98e
  1. 2
      beesdoo_worker_status/__manifest__.py
  2. 31
      beesdoo_worker_status/demo/cooperators.xml
  3. 15
      beesdoo_worker_status/views/res_partner.xml

2
beesdoo_worker_status/__manifest__.py

@ -20,9 +20,9 @@
],
'data': [
"views/res_partner.xml",
],
'demo': [
"demo/cooperators.xml",
"demo/workers.xml",
"demo/tasks.xml",
]

31
beesdoo_worker_status/demo/cooperators.xml

@ -0,0 +1,31 @@
<?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="beesdoo_base.res_partner_cooperator_1_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
<record id="beesdoo_base.res_partner_cooperator_2_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
<record id="beesdoo_base.res_partner_cooperator_3_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
<record id="beesdoo_base.res_partner_cooperator_4_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
<record id="beesdoo_base.res_partner_cooperator_5_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
<record id="beesdoo_base.res_partner_cooperator_6_demo" model="res.partner">
<field name="cooperator_type">share_a</field>
</record>
</odoo>

15
beesdoo_worker_status/views/res_partner.xml

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="beesdoo_partner_form_view">
<field name="name">beesdoo.partner.form.view</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="beesdoo_base.beesdoo_partner_form_view" />
<field name="arch" type="xml">
<field name="cooperator_type" position="before">
<field name="is_worker"/>
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save