Debian Codegraph @

addons/l10n_fr_pos_cert/report/pos_hash_integrity.py

raw
1 # -*- coding: utf-8 -*-
2 # Part of Odoo. See LICENSE file for full copyright and licensing details.
3
4 from odoo import api, fields, models
5
6
7 class ReportL10n_Fr_Pos_CertReport_Pos_Hash_Integrity(models.AbstractModel):
8 _name = 'report.l10n_fr_pos_cert.report_pos_hash_integrity'
9 _description = 'Get french pos hash integrity result as PDF.'
10
11 @api.model
12 def _get_report_values(self, docids, data=None):
13 data = data or {}
14 data.update(self.env.company._check_pos_hash_integrity() or {})
15 return {
16 'doc_ids' : docids,
17 'doc_model' : self.env['res.company'],
18 'data' : data,
19 'docs' : self.env['res.company'].browse(self.env.company.id),
20 }