guys,
I am newer to odoo development. i seen here py is totally different to me what i seen in py tutorials
I looking via code to understand py in odoo
I got this code in reporting.
someone explain the below code :
def check_report(self, cr, uid, ids, context=None):
if context is None:
context = {}
data = self.read(cr, uid, ids, context=context)[0]
datas = {
'ids': context.get('active_ids',[]),
'model': 'account.budget.classification',
'form': data
}
datas['form']['report']='analytic-full'
return {
'type': 'ir.actions.report.xml',
'report_name': 'account.budget',
'datas': datas,
}
and also please give any material to odoo py language.