<commit_before>#    @author <NAME> <<EMAIL>>
# © 2012 KMEE INFORMATICA LTDA
#   @author <NAME> <<EMAIL>>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, fields, models

from ..constants import (
    BR_CODES_PAYMENT_ORDER,
)


class AccountInvoice(models.Model):
    _inherit = 'account.invoice'

    @api.multi
    @api.depends('move_id.line_ids')
    def _compute_financial(self):
        for invoice in self:
            lines = invoice.move_id.line_ids.filtered(<commit_msg>[FIX] Field compute financial_move_line_ids should has depends of move_id.state .<commit_after>#    @author <NAME> <<EMAIL>>
# © 2012 KMEE INFORMATICA LTDA
#   @author <NAME> <<EMAIL>>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, fields, models

from ..constants import (
    BR_CODES_PAYMENT_ORDER,
)


class AccountInvoice(models.Model):
    _inherit = 'account.invoice'

    @api.multi
    @api.depends('move_id.line_ids', 'move_id.state')
    def _compute_financial(self):
        for invoice in self:
            lines = invoice.move_id.line_ids.filtered(
{'fraction_non_alphanumeric': 0.1275465013286094, 'fraction_numerical': 0.010628875110717449, 'mean_word_length': 3.556451612903226, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7387914', 'n_tokens_mistral': 415, 'n_tokens_neox': 394, 'n_words': 91}