Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
5 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.22 MB
Module directory on disk
Code analysis 0 migration notes 3 models 2 views 0 HTTP endpoints

Description

This module extends the Odoo Purchase Blanket Order module to adapt it to the Brazilian needs, with this module you have tax data for collection and generation of fiscal documents (NF-e, NFS-e, CF-e, NFC-e and others), calculation Brazilian taxes and contributions (municipal, state and federal).

Dependencies

Odoo dependencies
Python dependencies
erpbrasil-base>=2.5.0, email-validator, erpbrasil-base>=2.4.2, num2words, phonenumbers
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
inherit_purchase_blanket_order_line_form_fiscal_tabs purchase.blanket.order.line.form.fiscal.inherit purchase.blanket.order.line form Inherits purchase_blanket_order.purchase_blanket_order_line_form
view_purchase_blanket_order_form_inherit purchase.blanket.order.form (in l10n_br_purchase_blanket_order) purchase.blanket.order form Inherits purchase_blanket_order.view_purchase_blanket_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (7)
  • cnpj_cpf Char
    related='partner_id.vat' string='CNPJ/CPF'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_blanket_order_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_blanket_order_comment_rel' string='Comments'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True
  • ind_pres Selection
    readonly=True
  • l10n_br_ie_code Char
    related='partner_id.l10n_br_ie_code' string='State Tax Number/RG'
  • legal_name Char
    related='partner_id.legal_name' string='Legal Name'
  • operation_name Char
    copy=False
Public methods (0)

No public methods.

New fields (13)
  • cnae_id Many2one → l10n_br_fiscal.cnae
    comodel_name='l10n_br_fiscal.cnae' domain=<expr> string='CNAE Code'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_blanket_order_line_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_blanket_order_line_comment_rel' string='Comments'
  • country_id Many2one
    related='company_id.country_id' store=True
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=<expr>
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' domain="[('fiscal_operation_id', '=', fiscal_operation_id), ('state', '=', 'approved')]" string='Operation Line'
  • fiscal_tax_ids Many2many → l10n_br_fiscal.tax
    column1='document_id' column2='fiscal_tax_id' comodel_name='l10n_br_fiscal.tax' relation='fiscal_purchase_blanket_order_line_tax_rel' string='Fiscal Taxes'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' related='order_id.partner_id' string='Partner'
  • price_subtotal Monetary
    compute_sudo=True
  • price_tax Monetary
    compute_sudo=True
  • price_total Monetary
    compute_sudo=True
  • quantity Float
    related='original_uom_qty' string='Product Uom Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' string='Tax Framework'
  • uom_id Many2one
    related='product_uom'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_product(self)
    @api.onchange('product_id', 'original_uom_qty')
    OCA onchange_product sets taxes_id from supplier_taxes_id (empty on BR). Re-sync like l10n_br_purchase after the OCA onchange.
  • write(self, vals)

New fields (0)

No new fields.

Public methods (1)
  • create_purchase_order(self)

Loading…