forked from Yaltik/golem
[ADD]GOLEM Member Family Quotient module addition
This commit is contained in:
parent
4851f36965
commit
9c87fdf81d
18
golem_member_familyquotient/__init__.py
Normal file
18
golem_member_familyquotient/__init__.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright 2016 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/>.
|
||||||
|
|
||||||
|
from . import golem_member
|
30
golem_member_familyquotient/__openerp__.py
Normal file
30
golem_member_familyquotient/__openerp__.py
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright 2016 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/>.
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'GOLEM Member Family Quotient',
|
||||||
|
'summary': 'GOLEM Members Family Quotients',
|
||||||
|
'description': ''' Non-profit french MJC members family quotient ''',
|
||||||
|
'version': '0.1',
|
||||||
|
'category': 'Non-profit management',
|
||||||
|
'author': 'Fabien Bourgeois',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'application': False,
|
||||||
|
'installable': True,
|
||||||
|
'depends': ['golem_member'],
|
||||||
|
'data': ['golem_member_view.xml']
|
||||||
|
}
|
25
golem_member_familyquotient/golem_member.py
Normal file
25
golem_member_familyquotient/golem_member.py
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright 2016 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/>.
|
||||||
|
|
||||||
|
from openerp import models, fields
|
||||||
|
|
||||||
|
|
||||||
|
class GolemMember(models.Model):
|
||||||
|
_inherit = 'golem.member'
|
||||||
|
|
||||||
|
caf_number = fields.Char('CAF Number')
|
||||||
|
qf = fields.Integer('Family Quotient')
|
48
golem_member_familyquotient/golem_member_view.xml
Normal file
48
golem_member_familyquotient/golem_member_view.xml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Copyright 2016 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/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<openerp>
|
||||||
|
<data>
|
||||||
|
<!-- Form -->
|
||||||
|
<record model="ir.ui.view" id="qf_form">
|
||||||
|
<field name="name">Add QF to main form</field>
|
||||||
|
<field name="model">golem.member</field>
|
||||||
|
<field name="inherit_id" ref="golem_member.view_form" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="number" position="after">
|
||||||
|
<field name="caf_number" />
|
||||||
|
<field name="qf" />
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<!-- Searches -->
|
||||||
|
<record model="ir.ui.view" id="skills_search">
|
||||||
|
<field name="name">Add Skills Search and Filter</field>
|
||||||
|
<field name="model">golem.member</field>
|
||||||
|
<field name="inherit_id" ref="golem_member.view_filter" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="email" position="after">
|
||||||
|
<field name="caf_number" />
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</openerp>
|
33
golem_member_familyquotient/i18n/fr.po
Normal file
33
golem_member_familyquotient/i18n/fr.po
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * golem_member_familyquotient
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2016-07-07 10:35+0000\n"
|
||||||
|
"PO-Revision-Date: 2016-07-07 10:35+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Language: fr\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: field:golem.member,caf_number:0
|
||||||
|
msgid "CAF Number"
|
||||||
|
msgstr "Numéro CAF"
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: field:golem.member,qf:0
|
||||||
|
msgid "Family Quotient"
|
||||||
|
msgstr "Quotient familial"
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: model:ir.model,name:golem_member_familyquotient.model_golem_member
|
||||||
|
msgid "GOLEM Member"
|
||||||
|
msgstr "GOLEM : adhérent"
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
# Translation of Odoo Server.
|
||||||
|
# This file contains the translation of the following modules:
|
||||||
|
# * golem_member_familyquotient
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2016-07-07 10:34+0000\n"
|
||||||
|
"PO-Revision-Date: 2016-07-07 10:34+0000\n"
|
||||||
|
"Last-Translator: <>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: \n"
|
||||||
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: field:golem.member,caf_number:0
|
||||||
|
msgid "CAF Number"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: field:golem.member,qf:0
|
||||||
|
msgid "Family Quotient"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_member_familyquotient
|
||||||
|
#: model:ir.model,name:golem_member_familyquotient.model_golem_member
|
||||||
|
msgid "GOLEM Member"
|
||||||
|
msgstr ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user