Browse Source

[PEP8] base_optional_quick_create

pull/12/head
Yannick Vaucher 11 years ago
parent
commit
4b64380c6d
  1. 7
      base_optional_quick_create/__openerp__.py
  2. 3
      base_optional_quick_create/model.py

7
base_optional_quick_create/__openerp__.py

@ -24,8 +24,11 @@
'category': 'Tools',
'summary': "Avoid 'quick create' on m2o fields, on a 'by model' basis",
'description': """
This module allows to avoid to 'quick create' new records, through many2one fields, for a specific model.
You can configure which models should allow 'quick create'. When specified, the 'quick create' option will always open the standard create form.
This module allows to avoid to 'quick create' new records, through many2one
fields, for a specific model.
You can configure which models should allow 'quick create'.
When specified, the 'quick create' option will always open the standard create
form.
Got the idea from https://twitter.com/nbessi/status/337869826028605441
""",

3
base_optional_quick_create/model.py

@ -22,10 +22,11 @@ from openerp.osv import orm, fields
from openerp import SUPERUSER_ID
from openerp.tools.translate import _
class ir_model(orm.Model):
_inherit = 'ir.model'
_columns = {
'avoid_quick_create': fields.boolean('Avoid quick create'),
}

Loading…
Cancel
Save