|
@ -6,10 +6,10 @@ from functools import wraps |
|
|
import logging |
|
|
import logging |
|
|
import json |
|
|
import json |
|
|
|
|
|
|
|
|
from openerp import models, fields, api |
|
|
|
|
|
from openerp.exceptions import ValidationError |
|
|
|
|
|
from openerp.tools.config import config |
|
|
|
|
|
from openerp.tools.translate import _ |
|
|
|
|
|
|
|
|
from odoo import models, fields, api |
|
|
|
|
|
from odoo.exceptions import ValidationError |
|
|
|
|
|
from odoo.tools.config import config |
|
|
|
|
|
from odoo.tools.translate import _ |
|
|
|
|
|
|
|
|
_logger = logging.getLogger(__name__) |
|
|
_logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
@ -40,7 +40,9 @@ class KeychainAccount(models.Model): |
|
|
technical_name = fields.Char( |
|
|
technical_name = fields.Char( |
|
|
required=True, |
|
|
required=True, |
|
|
help="Technical name. Must be unique") |
|
|
help="Technical name. Must be unique") |
|
|
namespace = fields.Selection([], help="Type of account", required=True) |
|
|
|
|
|
|
|
|
namespace = fields.Selection(selection=[], |
|
|
|
|
|
help="Type of account", |
|
|
|
|
|
required=True) |
|
|
environment = fields.Char( |
|
|
environment = fields.Char( |
|
|
required=False, |
|
|
required=False, |
|
|
help="'prod', 'dev', etc. or empty (for all)" |
|
|
help="'prod', 'dev', etc. or empty (for all)" |
|
|