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

Hi,


I am trying to update a module to work on Odoo 12, and I want to update some calendar record.

If I get my JS Code, I have this:

```

toggle_replacement: function(event){
    event.record.replaceable = !event.record.replaceable;
    this.trigger_up('updateRecord', event);
 },

```


But the value does not go to the write function on the python side.


Full JS can be found here:

https://github.com/Dazul/odoo_at_svp/blob/master/staff_management/static/src/js/personal_schedule.js

And the python that goes with it:

https://github.com/Dazul/odoo_at_svp/blob/master/staff_management/models/staff_scheduler.py


Regards,

Luis

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
7326
4
يوليو 24
10617
1
يوليو 20
3232
1
يوليو 19
4212
0
يوليو 25
248