You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
609 B
20 lines
609 B
# Copyright 2017 Creu Blanca
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import api, models
|
|
from odoo.modules import get_resource_path
|
|
|
|
|
|
class PartnerPDF(models.AbstractModel):
|
|
_name = 'report.report_fillpdf.partner_fillpdf'
|
|
_inherit = 'report.report_fillpdf.abstract'
|
|
|
|
@api.model
|
|
def get_original_document_path(self, data, objs):
|
|
return get_resource_path(
|
|
'report_fillpdf', 'static/src/pdf', 'partner_pdf.pdf')
|
|
|
|
@api.model
|
|
def get_document_values(self, data, objs):
|
|
objs.ensure_one()
|
|
return {'name': objs.name}
|