跳至内容
菜单
此问题已终结
1 回复
2244 查看
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

形象
丢弃
编写者 最佳答案

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.

形象
丢弃
相关帖文 回复 查看 活动
4
2月 25
2389
1
11月 24
1547
0
8月 24
1592
1
8月 24
2006
2
11月 24
3194