<commit_before># Copyright (C) 2009  <NAME> - Akretion, <NAME>
# Copyright (C) 2012  <NAME> - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models


class PurchaseOrderLine(models.Model):
    _name = "purchase.order.line"
    _inherit = ["purchase.order.line", "l10n_br_fiscal.document.line.mixin"]<commit_msg>[12.0][MIG][FIX] Included necessary fields to work with mixin and inherit.<commit_after># Copyright (C) 2009  <NAME> - Akretion, <NAME>
# Copyright (C) 2012  <NAME> - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models, fields

from ...l10n_br_fiscal.constants.fiscal import (
    TAX_FRAMEWORK,
)

class PurchaseOrderLine(models.Model):
    _name = "purchase.order.line"
    _inherit = ["purchase.order.line", "l10n_br_fiscal.document.line.mixin"]

    fiscal_tax_ids = fields.Many2many(
        comodel_name='l10n_br_fiscal.tax',
        relation='fiscal_sale_line_tax_rel',
        column1='document_id',
        column2='fiscal_tax_id',
        string="Fiscal Taxes")

    tax_framework = fields.Selection(
        selection=TAX_FRAMEWORK,
        related="order_id.company_id.tax_framework",
        string="Tax Framework")
{'fraction_non_alphanumeric': 0.13160032493907392, 'fraction_numerical': 0.02924451665312754, 'mean_word_length': 3.7937743190661477, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3506660', 'n_tokens_mistral': 469, 'n_tokens_neox': 441, 'n_words': 81}