On 06/24/2013 11:45 AM, Holger Brunn (Therp) wrote:
> 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.
This use case (form based) should already be covered by web_m2o_enhanced
<https://github.com/0k/web_m2o_enhanced> module.
But we realized that a per model option would often be more useful.
On 06/24/2013 11:45 AM, Holger Brunn (Therp) wrote:
> Does this survive a server restart? I'd expect to have to patch BaseModel.__init__ for it to work.
In my tests, it does. bazaar. launchpad. net/%7Eopenerp/ openobject- addons/ 7.0/view/ 9277/base_ action_ rule/base_ action_ rule.py# L132>.
Consider that I followed the same way followed by base_action_rule
<http://
> 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.
This use case (form based) should already be covered by web_m2o_enhanced /github. com/0k/ web_m2o_ enhanced> module.
<https:/
But we realized that a per model option would often be more useful.
--
Lorenzo Battistini