Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2356 Visualizzazioni
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
Abbandona
Autore Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
feb 25
2808
1
nov 24
1751
0
ago 24
1700
1
ago 24
2263
2
nov 24
3436