Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2572 Zobrazení
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

Avatar
Zrušit
Autor Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
úno 25
3395
1
lis 24
2041
0
srp 24
1906
1
srp 24
2550
2
lis 24
3845