Merge lp:~elbati/server-env-tools/adding_base_optional_quick_create_7 into lp:~server-env-tools-core-editors/server-env-tools/7.0
Proposed by
Lorenzo Battistini
Status: | Merged |
---|---|
Merged at revision: | 42 |
Proposed branch: | lp:~elbati/server-env-tools/adding_base_optional_quick_create_7 |
Merge into: | lp:~server-env-tools-core-editors/server-env-tools/7.0 |
Diff against target: |
163 lines (+138/-0) 5 files modified
base_optional_quick_create/AUTHORS.txt (+1/-0) base_optional_quick_create/__init__.py (+20/-0) base_optional_quick_create/__openerp__.py (+43/-0) base_optional_quick_create/model.py (+60/-0) base_optional_quick_create/model_view.xml (+14/-0) |
To merge this branch: | bzr merge lp:~elbati/server-env-tools/adding_base_optional_quick_create_7 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | code review, no test | Approve | |
Holger Brunn (Therp) | Approve | ||
Review via email: mp+170569@code.launchpad.net |
Description of the change
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.
To post a comment you must log in.
Does this survive a server restart? I'd expect to have to patch BaseModel.__init__ for it to work.
But then on the other hand, have you considered to patch the many2one widget so that we can set an attribute or a context key to suppress quick create? This seems to me to be more useful as I think you more often need to control that behavior on a per form level and not on a per model level.