<commit_before># -*- coding: utf-8 -*-
from .pd_base import BaseExtClass
from .. import tools


class AccountInvoice(BaseExtClass):
    _inherit = "account.invoice"

    fields_to_watch = ('id', 'commercial_partner_id', 'name', 'date_invoice', 'amount_total', 'state')

    def is_notifiable(self):
 		# La empresa num. 17 es Pallatium
       return self.state == "open" \
           and self.company_id.id != 17 \
           and (self.type == 'out_invoice' or self.type == 'out_refund') \
           and self.number \
           and self.commercial_partner_id.is_notifiable()

    def set_props(self, unlink=False):
        podocuments = """
                <podocuments>
                  <IdDocs>{}</IdDocs>
                  <CardCode>{}</CardCode>
                  <ObjType>{}</ObjType>
                  <DocEntry>{}</DocEntry><commit_msg>[FIX]prestaodoo: Error de identacion<commit_after># -*- coding: utf-8 -*-
from .pd_base import BaseExtClass
from .. import tools


class AccountInvoice(BaseExtClass):
    _inherit = "account.invoice"

    fields_to_watch = ('id', 'commercial_partner_id', 'name', 'date_invoice', 'amount_total', 'state')

    def is_notifiable(self):
 		# La empresa num. 17 es Pallatium
        return self.state == "open" \
            and self.company_id.id != 17 \
            and (self.type == 'out_invoice' or self.type == 'out_refund') \
            and self.number \
            and self.commercial_partner_id.is_notifiable()

    def set_props(self, unlink=False):
        podocuments = """
                <podocuments>
                  <IdDocs>{}</IdDocs>
                  <CardCode>{}</CardCode>
                  <ObjType>{}</ObjType>
                  <DocEntry>{}</DocEntry>
{'fraction_non_alphanumeric': 0.13662790697674418, 'fraction_numerical': 0.005813953488372093, 'mean_word_length': 2.1811460258780038, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1991180', 'n_tokens_mistral': 567, 'n_tokens_neox': 532, 'n_words': 110}