Files
public/ruodoo_commservice/report/report_order.py

18 lines
573 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from odoo import models
from odoo.addons.ruodoo_commservice.report_helper import QWebHelper
class RuCommInvoiceReport(models.AbstractModel):
_name = 'report.ruodoo_commservice.report_inv_1c'
_description = 'Счёт по форме 1С (аренда/коммунальные услуги)'
def _get_report_values(self, docids, data=None):
docs = self.env['account.move'].browse(docids)
return {
'helper': QWebHelper(),
'doc_ids': docs.ids,
'doc_model': 'account.move',
'docs': docs,
}