golem/golem_membership/data/account_data.xml

43 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data noupdate="1">
<!-- Base accounts for memberships -->
<record id="account_756" model="account.account">
<field name="code">756</field>
<field name="name">Cotisations des membres</field>
<field name="company_id" eval="ref('base.main_company')" />
<field name="user_type_id" eval="ref('account.data_account_type_revenue')" />
<field name="reconcile" eval="True" />
</record>
<record id="account_756200" model="account.account">
<field name="code">756200</field>
<field name="name">Adhésions</field>
<field name="company_id" eval="ref('base.main_company')" />
<field name="user_type_id" eval="ref('account.data_account_type_revenue')" />
<field name="reconcile" eval="True" />
</record>
<!-- Base Accounting settings call -->
<function model="golem.membership.account.config" name="account_settings" />
</data>
</odoo>