[FIX] Fixed m2o. (Sales/Customers form view could not open)
bzr revid: fme@openerp.com-20120418151705-1nmy4hey8v4bngnp
This commit is contained in:
parent
19530df8f3
commit
9ce87931f8
|
@ -2976,7 +2976,7 @@ instance.web.form.One2ManyFormView = instance.web.FormView.extend({
|
|||
on_loaded: function(data) {
|
||||
this._super(data);
|
||||
var self = this;
|
||||
this.$form_header.find('button.oe_form_button_create').click(function() {
|
||||
this.$buttons.find('button.oe_form_button_create').click(function() {
|
||||
self.do_save().then(self.on_button_new);
|
||||
});
|
||||
},
|
||||
|
|
|
@ -283,7 +283,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
|||
// Lazy loading of views
|
||||
var controllerclass = this.registry.get_object(view_type);
|
||||
var options = _.clone(view.options);
|
||||
if (view_type === "form") {
|
||||
if (view_type === "form" && this.action) {
|
||||
switch (this.action.target) {
|
||||
case 'new':
|
||||
case 'inline':
|
||||
|
|
Loading…
Reference in New Issue