Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4909 มุมมอง

Hello community ,


I'm trying to extend this class to add some functions exports.Order = Backbone.Model.extend({ it is difrrent from the most of the classes how we can extend this type of classes ? 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I've found  a solution for people who need  this:


var models = require('point_of_sale.models');

models.Order = models.Order.extend({

// your code here

})

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 23
38
Open popup when point of sale is loaded แก้ไขแล้ว
1
พ.ค. 23
2582
0
ก.พ. 16
5721
Odoo 14: Reload Point Of Sale แก้ไขแล้ว
1
เม.ย. 24
2149
Create sales order from pos session แก้ไขแล้ว
1
ก.พ. 22
5375