forked from Yaltik/golem
[MIG][IMP]GOLEM member family quotient migration to v10, and better guidelines
This commit is contained in:
parent
657a3da259
commit
4162f2c259
@ -15,4 +15,4 @@
|
||||
# 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
|
||||
from . import models
|
||||
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016 Fabien Bourgeois <fabien@yaltik.com>
|
||||
# Copyright 2017 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
|
||||
@ -23,7 +23,7 @@
|
||||
'author': 'Fabien Bourgeois',
|
||||
'license': 'AGPL-3',
|
||||
'application': False,
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
'depends': ['golem_member'],
|
||||
'data': ['golem_member_view.xml']
|
||||
'data': ['views/golem_member_views.xml']
|
||||
}
|
||||
|
@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Project-Id-Version: Odoo Server 10.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"
|
||||
"POT-Creation-Date: 2017-05-01 20:55+0000\n"
|
||||
"PO-Revision-Date: 2017-05-01 20:55+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -17,17 +17,17 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#. module: golem_member_familyquotient
|
||||
#: field:golem.member,caf_number:0
|
||||
#: model:ir.model.fields,field_description:golem_member_familyquotient.field_golem_member_caf_number
|
||||
msgid "CAF Number"
|
||||
msgstr "Numéro CAF"
|
||||
|
||||
#. module: golem_member_familyquotient
|
||||
#: field:golem.member,qf:0
|
||||
#: model:ir.model.fields,field_description:golem_member_familyquotient.field_golem_member_qf
|
||||
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"
|
||||
msgstr "Adhérent"
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Project-Id-Version: Odoo Server 10.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"
|
||||
"POT-Creation-Date: 2017-05-01 20:54+0000\n"
|
||||
"PO-Revision-Date: 2017-05-01 20:54+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -16,12 +16,12 @@ msgstr ""
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: golem_member_familyquotient
|
||||
#: field:golem.member,caf_number:0
|
||||
#: model:ir.model.fields,field_description:golem_member_familyquotient.field_golem_member_caf_number
|
||||
msgid "CAF Number"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_member_familyquotient
|
||||
#: field:golem.member,qf:0
|
||||
#: model:ir.model.fields,field_description:golem_member_familyquotient.field_golem_member_qf
|
||||
msgid "Family Quotient"
|
||||
msgstr ""
|
||||
|
||||
|
18
golem_member_familyquotient/models/__init__.py
Normal file
18
golem_member_familyquotient/models/__init__.py
Normal file
@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2017 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
|
@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016 Fabien Bourgeois <fabien@yaltik.com>
|
||||
# Copyright 2017 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
|
||||
@ -15,10 +15,12 @@
|
||||
# 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/>.
|
||||
|
||||
""" GOLEM Member Family Quotient """
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class GolemMember(models.Model):
|
||||
""" GOLEM Member adaptations """
|
||||
_inherit = 'golem.member'
|
||||
|
||||
caf_number = fields.Char('CAF Number')
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
Copyright 2016 Fabien Bourgeois <fabien@yaltik.com>
|
||||
Copyright 2017 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
|
||||
@ -19,11 +19,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<!-- Form -->
|
||||
<record model="ir.ui.view" id="qf_form">
|
||||
<record model="ir.ui.view" id="golem_member_form_inherit_familyquotient">
|
||||
<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="inherit_id" ref="golem_member.golem_member_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="number" position="after">
|
||||
<field name="caf_number" />
|
||||
@ -33,10 +34,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</record>
|
||||
|
||||
<!-- Searches -->
|
||||
<record model="ir.ui.view" id="skills_search">
|
||||
<record model="ir.ui.view" id="golem_member_search_inherit_familyquotient">
|
||||
<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="inherit_id" ref="golem_member.golem_member_search" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="email" position="after">
|
||||
<field name="caf_number" />
|
||||
|
Loading…
Reference in New Issue
Block a user