<commit_before># -*- encoding: utf-8 -*-
# Copyright (C) 2017 - TODAY <NAME> - KMEE
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from openerp.addons.report_py3o.py3o_parser import py3o_report_extender


@py3o_report_extender(
    "l10n_br_hr_payroll_report.report_payslip_py3o_report")
def payslip_report(pool, cr, uid, local_context, context):
    payslip_pool = pool['hr.payslip']

    company_logo = \
        payslip_pool.browse(cr, uid, context['active_id']).company_id.logo

    local_context['company_logo'] = company_logo<commit_msg>[ADD] Ajustar wrapper para pegar logo da nfe no relatorio do holerite<commit_after># -*- encoding: utf-8 -*-
# Copyright (C) 2017 - TODAY <NAME> - KMEE
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from openerp.addons.report_py3o.py3o_parser import py3o_report_extender

@py3o_report_extender(
    "l10n_br_hr_payroll_report.report_payslip_py3o_report")
def payslip_report(pool, cr, uid, local_context, context):
    payslip_pool = pool['hr.payslip']

    company_logo = \
        payslip_pool.browse(cr, uid, context['active_id']).company_id.logo

    company_nfe_logo =\
        payslip_pool.browse(cr, uid, context['active_id']).company_id.nfe_logo

    local_context['company_logo'] = \
        company_nfe_logo if company_nfe_logo else company_logo
{'fraction_non_alphanumeric': 0.1198501872659176, 'fraction_numerical': 0.02247191011235955, 'mean_word_length': 4.453061224489796, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3748524', 'n_tokens_mistral': 531, 'n_tokens_neox': 498, 'n_words': 84}