gilles
8 years ago
committed by
Luis M. Ontalba
11 changed files with 62 additions and 122 deletions
-
16partner_academic_title/README.rst
-
1partner_academic_title/__init__.py
-
23partner_academic_title/__manifest__.py
-
43partner_academic_title/__openerp__.py
-
6partner_academic_title/data/partner_academic_title_data.xml
-
1partner_academic_title/models/__init__.py
-
34partner_academic_title/models/partner_academic_title.py
-
41partner_academic_title/models/res_partner.py
-
11partner_academic_title/views/partner_academic_title_view.xml
-
6partner_academic_title/views/res_partner_view.xml
@ -1,2 +1 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
from . import models |
from . import models |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Copyright 2015-2017 ACSONE SA/NV (<http://acsone.eu>) |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
{ |
||||
|
'name': "Partner Academic Title", |
||||
|
'summary': """ |
||||
|
Add possibility to define some academic title""", |
||||
|
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', |
||||
|
'website': "http://acsone.eu", |
||||
|
'category': 'Other', |
||||
|
'version': '10.0.1.0.0', |
||||
|
'license': 'AGPL-3', |
||||
|
'depends': [ |
||||
|
'hr', |
||||
|
'partner_contact_configuration', |
||||
|
], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'data/partner_academic_title_data.xml', |
||||
|
'views/partner_academic_title_view.xml', |
||||
|
'views/res_partner_view.xml', |
||||
|
], |
||||
|
} |
@ -1,43 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################## |
|
||||
# |
|
||||
# This file is part of partner_academic_title, |
|
||||
# an Odoo module. |
|
||||
# |
|
||||
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) |
|
||||
# |
|
||||
# partner_academic_title 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. |
|
||||
# |
|
||||
# partner_academic_title 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 partner_academic_title. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################## |
|
||||
{ |
|
||||
'name': "Partner Academic Title", |
|
||||
'summary': """ |
|
||||
Add possibility to define some academic title""", |
|
||||
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', |
|
||||
'website': "http://acsone.eu", |
|
||||
'category': 'Other', |
|
||||
'version': '8.0.1.0.0', |
|
||||
'license': 'AGPL-3', |
|
||||
'depends': [ |
|
||||
'hr', |
|
||||
], |
|
||||
'data': [ |
|
||||
'security/ir.model.access.csv', |
|
||||
'data/partner_academic_title_data.xml', |
|
||||
'views/partner_academic_title_view.xml', |
|
||||
'views/res_partner_view.xml', |
|
||||
], |
|
||||
} |
|
@ -1,3 +1,2 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
from . import partner_academic_title |
from . import partner_academic_title |
||||
from . import res_partner |
from . import res_partner |
@ -1,35 +1,17 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||
############################################################################## |
|
||||
# |
|
||||
# This file is part of partner_academic_title, |
|
||||
# an Odoo module. |
|
||||
# |
|
||||
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) |
|
||||
# |
|
||||
# partner_academic_title 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. |
|
||||
# |
|
||||
# partner_academic_title 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 partner_academic_title. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################## |
|
||||
|
# Copyright 2015-2017 ACSONE SA/NV (<http://acsone.eu>) |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
from openerp import models, fields |
|
||||
|
from odoo import models, fields |
||||
|
|
||||
|
|
||||
class PartnerAcademicTitle(models.Model): |
class PartnerAcademicTitle(models.Model): |
||||
_name = 'partner.academic.title' |
_name = 'partner.academic.title' |
||||
|
|
||||
name = fields.Char(required=True, translate=True) |
|
||||
|
name = fields.Char(required=True, |
||||
|
translate=True |
||||
|
) |
||||
sequence = fields.Integer(required=True, |
sequence = fields.Integer(required=True, |
||||
help="""defines the order to display titles""") |
|
||||
|
help="""defines the order to display titles""" |
||||
|
) |
||||
active = fields.Boolean(default=True) |
active = fields.Boolean(default=True) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue