6 changed files with 87 additions and 55 deletions
-
2res_partner_fiscal_document/__init__.py
-
2res_partner_fiscal_document/__openerp__.py
-
98res_partner_fiscal_document/res_partner.py
-
37res_partner_fiscal_document/res_partner_idtype.py
-
0res_partner_fiscal_document/res_partner_view.xml
-
3res_partner_fiscal_document/security/ir.model.access.csv
@ -0,0 +1,37 @@ |
|||||
|
# -*- encoding: utf-8 -*- |
||||
|
# ############################################################################# |
||||
|
# |
||||
|
# OpenERP, Open Source Management Solution |
||||
|
# Copyright (C) Odoo Colombia (Community). |
||||
|
# Author David Arnold (devCO) |
||||
|
# |
||||
|
# 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, api, _ |
||||
|
|
||||
|
|
||||
|
class ResPartnerIDtype(models.Model): |
||||
|
_name = 'res.partner.idtype' |
||||
|
_description = 'Identification Document Type' |
||||
|
_order = 'sequence' |
||||
|
|
||||
|
name = fields.Char(required=True) |
||||
|
code = fields.Char(required=True) |
||||
|
sequence = fields.Integer() |
||||
|
active = fields.Boolean(default=True) |
||||
|
note = fields.Text() |
||||
|
on_company = fields.Boolean(string=u'On Company?') |
||||
|
on_contact = fields.Boolean(string=u'On Contact?', default=True) |
@ -0,0 +1,3 @@ |
|||||
|
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
||||
|
"access_res_partner_idtype","res_res_partner_idtype_user","model_res_partner_idtype","group_account_user",1,0,0,0 |
||||
|
"access_res_partner_idtype_manager","res_res_partner_idtype_manager","model_res_partner_idtype","account.group_account_manager",1,1,1,1 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue