Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2230 Lượt xem
odoo method
classReportSaleDetails(models.AbstractModel):
_name = 'report.point_of_sale.report_saledetails'_description = 'Point of Sale Details'

@api.model
defget_sale_details(self, date_start=False, date_stop=False, config_ids=False, session_ids=False):

my method
classReportSaleDetails(models.AbstractModel):
_inherit = 'report.point_of_sale.report_saledetails'
@api.model
defget_sale_details(self, date_start=False, date_stop=False, config_ids=False, session_ids=False):

in my case i copied the whole method and changed one line of code but its only the original method that is called.. What am i doing wrong

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

turns out there was an error in the new method so instead of giving me an error message, it reverted back to the original method.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 2 25
2348
1
thg 11 24
1534
0
thg 8 24
1584
1
thg 8 24
1981
2
thg 11 24
3170