تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4358 أدوات العرض

Hello People i am stuck yet again i want this js code to work

openerp.project_management = function (instance) {
    openerp.project_management.quickadd(instance);
    var _t = instance.web._t,
        _lt = instance.web._lt;
    var QWeb = instance.web.qweb;
    instance.web.project_management = instance.web.project_management || {};

instance.web.views.add('form_project_task', 'instance.web.project_management.mailprojecttask');

instance.web.project_management.mailprojecttask = instance.web.FormView.extend({
    init: function() {
        this._super.apply(this, arguments);
    },
    start: function() {
        var self = this;
        console.log("Something");
    },

});

};

What i want basically is when the person clicks on create button in project.task the above code should be execute and the console.log("Something") should be execeuted.

Also for this in the form view i defined the as follows -:

  <form_project_task string="Form view" version = "7.0">
            <field name = ""/>
          <field name = ""/>
          <field name = ""/>
           <field name = ""/>
</form_project_task>
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 17
9653
0
مارس 15
3943
0
مارس 15
3485
0
مايو 19
3562
0
يناير 16
5313