Brazilian Localization Purchase

l10n_br_purchase
REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/17.0/l10n_br_purchase
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Weblate, OCA-git-bot, oca-ci, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
OCA/product-attribute:
    - uom_alias
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_extended
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Este módulo integra a parte fiscal do módulo `l10n_br_fiscal` com o
módulo de compra purchase do Odoo. O módulo permite o cálculo dos
impostos brasileiros já no pedido de compra e propaga a operação fiscal
até a nota fiscal de compra, deixando ela com a tributação mais correta
possível para seu financeiro (sendo que vocẽ poderia também importar o
XML da nota depois).

O relatório de compra também é estendido para apresentar os impostos
brasileiros.

Este módulo é indicado para a compra de itens com NFe's. Mas se você
quer gerenciar suas notas de entradas de acordo com o recebimento do
material, você pode também ter interesse no módulo
`l10n_br_purchase_stock` que permite isso.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form l10n_br_purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line xpath Inherits purchase.purchase_order_line_form2
l10n_br_purchase_report_search l10n_br_purchase.report.search purchase.report filter Inherits purchase.view_purchase_order_search
l10n_br_purchase_res_company_form l10n_br_purchase.res.company.form res.company xpath Inherits l10n_br_fiscal.fiscal_res_company_form
report_purchaseorder_document_l10n_br_purchase report_purchaseorder_document_l10n_br_purchase ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • active_company_country_id Many2one → res.country
    comodel_name='res.country' default=<expr> string='Active Company Country'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' compute='_compute_comment_ids' relation='purchase_order_comment_rel' store=True string='Comments'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True
Public methods (0)

No public methods.

New fields (7)
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_line_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_order_line_comment_rel' string='Comments'
  • delivery_costs Selection
    related='company_id.delivery_costs'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_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'
  • quantity Float
    related='product_qty' string='Mixin Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' string='Tax Framework'
  • uom_id Many2one
    related='product_uom' string='Mixin UOM'
Public methods (0)

No public methods.

New fields (17)
  • cest_id Many2one → l10n_br_fiscal.cest
    comodel_name='l10n_br_fiscal.cest' string='CEST'
  • cfop_id Many2one → l10n_br_fiscal.cfop
    comodel_name='l10n_br_fiscal.cfop' string='CFOP'
  • cofins_value Float
    digits='Account' string='COFINS Value'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' readonly=True string='Fiscal Operation'
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' readonly=True string='Fiscal Operation Line'
  • fiscal_type Selection
    selection=PRODUCT_FISCAL_TYPE string='Tipo Fiscal'
  • freight_value Float
    digits='Account'
  • icms_value Float
    digits='Account' string='ICMS Value'
  • icmsst_value Float
    digits='Account' string='ICMS ST Value'
  • ii_value Float
    digits='Account' string='II Value'
  • insurance_value Float
    digits='Account'
  • ipi_value Float
    digits='Account' string='IPI Value'
  • nbm_id Many2one → l10n_br_fiscal.nbm
    comodel_name='l10n_br_fiscal.nbm' string='NBM'
  • ncm_id Many2one → l10n_br_fiscal.ncm
    comodel_name='l10n_br_fiscal.ncm' string='NCM'
  • other_value Float
    digits='Account'
  • pis_value Float
    digits='Account' string='PIS Value'
  • total_with_taxes Float
    digits='Account'
Public methods (0)

No public methods.

New fields (1)
  • purchase_fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=[('state', '=', 'approved'), ('fiscal_type', '=', 'purchase')] string='Default Fiscal Operation for Purchase'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/16.0/l10n_br_purchase
VERSION
VERSION 6.0.4
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Renato Lima, Weblate, OCA-git-bot, oca-ci, Marcel Savegnago, Antonio Neto, Antônio Neto, Wesley Oliveira, Felipe Motter
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:11:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
OCA/product-attribute:
    - uom_alias
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Este módulo integra a parte fiscal do módulo `l10n_br_fiscal` com o
módulo de compra purchase do Odoo. O módulo permite o cálculo dos
impostos brasileiros já no pedido de compra e propaga a operação fiscal
até a nota fiscal de compra, deixando ela com a tributação mais correta
possível para seu financeiro (sendo que vocẽ poderia também importar o
XML da nota depois).

O relatório de compra também é estendido para apresentar os impostos
brasileiros.

Este módulo é indicado para a compra de itens com NFe's. Mas se você
quer gerenciar suas notas de entradas de acordo com o recebimento do
material, você pode também ter interesse no módulo
`l10n_br_purchase_stock` que permite isso.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form l10n_br_purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line xpath Inherits purchase.purchase_order_line_form2
l10n_br_purchase_report_search l10n_br_purchase.report.search purchase.report filter Inherits purchase.view_purchase_order_search
l10n_br_purchase_res_company_form l10n_br_purchase.res.company.form res.company xpath Inherits l10n_br_fiscal.fiscal_res_company_form
report_purchaseorder_document_l10n_br_purchase report_purchaseorder_document_l10n_br_purchase ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • active_company_country_id Many2one → res.country
    comodel_name='res.country' default=<expr> string='Active Company Country'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' compute='_compute_comment_ids' relation='purchase_order_comment_rel' store=True string='Comments'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
Public methods (0)

No public methods.

New fields (7)
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_line_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_order_line_comment_rel' string='Comments'
  • delivery_costs Selection
    related='company_id.delivery_costs'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_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'
  • quantity Float
    related='product_qty' string='Mixin Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' string='Tax Framework'
  • uom_id Many2one
    related='product_uom' string='Mixin UOM'
Public methods (0)

No public methods.

New fields (17)
  • cest_id Many2one → l10n_br_fiscal.cest
    comodel_name='l10n_br_fiscal.cest' string='CEST'
  • cfop_id Many2one → l10n_br_fiscal.cfop
    comodel_name='l10n_br_fiscal.cfop' string='CFOP'
  • cofins_value Float
    digits='Account' string='COFINS Value'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' readonly=True string='Fiscal Operation'
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' readonly=True string='Fiscal Operation Line'
  • fiscal_type Selection
    selection=PRODUCT_FISCAL_TYPE string='Tipo Fiscal'
  • freight_value Float
    digits='Account'
  • icms_value Float
    digits='Account' string='ICMS Value'
  • icmsst_value Float
    digits='Account' string='ICMS ST Value'
  • ii_value Float
    digits='Account' string='II Value'
  • insurance_value Float
    digits='Account'
  • ipi_value Float
    digits='Account' string='IPI Value'
  • nbm_id Many2one → l10n_br_fiscal.nbm
    comodel_name='l10n_br_fiscal.nbm' string='NBM'
  • ncm_id Many2one → l10n_br_fiscal.ncm
    comodel_name='l10n_br_fiscal.ncm' string='NCM'
  • other_value Float
    digits='Account'
  • pis_value Float
    digits='Account' string='PIS Value'
  • total_with_taxes Float
    digits='Account'
Public methods (0)

No public methods.

New fields (1)
  • purchase_fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=[('state', '=', 'approved'), ('fiscal_type', '=', 'purchase')] string='Default Fiscal Operation for Purchase'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/15.0/l10n_br_purchase
VERSION
VERSION 1.3.1
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Weblate, OCA-git-bot, oca-ci, Marcel Savegnago, Wesley Oliveira
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:31
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_due_list
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
    - l10n_br_account_due_list
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_city
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
l10n_br_purchase_order_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
l10n_br_purchase_order_form l10n_br_purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line xpath Inherits purchase.purchase_order_line_form2
l10n_br_purchase_report_search l10n_br_purchase.report.search purchase.report filter Inherits purchase.view_purchase_order_search
l10n_br_purchase_res_company_form l10n_br_purchase.res.company.form res.company xpath Inherits l10n_br_fiscal.fiscal_res_company_form
report_purchaseorder_document_l10n_br_purchase report_purchaseorder_document_l10n_br_purchase ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • active_company_country_id Many2one → res.country
    comodel_name='res.country' default=<expr> string='Company'
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_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 states={'draft': [('readonly', False)]}
  • ie Char
    related='partner_id.inscr_est' string='State Tax Number/RG'
  • legal_name Char
    related='partner_id.legal_name' string='Legal Name'
  • operation_name Char
    copy=False
Public methods (1)
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model

New fields (9)
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_line_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_order_line_comment_rel' string='Comments'
  • delivery_costs Selection
    related='company_id.delivery_costs'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
  • 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_line_tax_rel' string='Fiscal Taxes'
  • ind_final Selection
    related='order_id.ind_final'
  • quantity Float
    depends=['product_qty'] related='product_qty' string='Mixin Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' string='Tax Framework'
  • uom_id Many2one
    depends=['product_uom'] related='product_uom' string='Mixin UOM'
Public methods (0)

No public methods.

New fields (17)
  • cest_id Many2one → l10n_br_fiscal.cest
    comodel_name='l10n_br_fiscal.cest' string='CEST'
  • cfop_id Many2one → l10n_br_fiscal.cfop
    comodel_name='l10n_br_fiscal.cfop' string='CFOP'
  • cofins_value Float
    digits='Account' string='COFINS Value'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' readonly=True string='Fiscal Operation'
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' readonly=True string='Fiscal Operation Line'
  • fiscal_type Selection
    selection=PRODUCT_FISCAL_TYPE string='Tipo Fiscal'
  • freight_value Float
    digits='Account'
  • icms_value Float
    digits='Account' string='ICMS Value'
  • icmsst_value Float
    digits='Account' string='ICMS ST Value'
  • ii_value Float
    digits='Account' string='II Value'
  • insurance_value Float
    digits='Account'
  • ipi_value Float
    digits='Account' string='IPI Value'
  • nbm_id Many2one → l10n_br_fiscal.nbm
    comodel_name='l10n_br_fiscal.nbm' string='NBM'
  • ncm_id Many2one → l10n_br_fiscal.ncm
    comodel_name='l10n_br_fiscal.ncm' string='NCM'
  • other_value Float
    digits='Account'
  • pis_value Float
    digits='Account' string='PIS Value'
  • total_with_taxes Float
    digits='Account'
Public methods (0)

No public methods.

New fields (1)
  • purchase_fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=[('state', '=', 'approved'), ('fiscal_type', '=', 'purchase')] string='Default Fiscal Operation for Purchase'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_purchase
VERSION
VERSION 3.11.1
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Renato Lima, OCA Transbot, Luis Felipe Miléo, oca-travis, Weblate, OCA-git-bot, Magno Costa, oca-ci, Marcel Savegnago, Antônio Neto, Wesley Oliveira, Felipe Motter
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:53
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_due_list
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
    - l10n_br_account_due_list
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_address_city
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.base
email-validator
num2words
phonenumbers
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
l10n_br_purchase_order_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
l10n_br_purchase_order_form l10n_br_purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line xpath Inherits purchase.purchase_order_line_form2
l10n_br_purchase_report_search l10n_br_purchase.report.search purchase.report filter Inherits purchase.view_purchase_order_search
l10n_br_purchase_res_company_form l10n_br_purchase.res.company.form res.company xpath Inherits l10n_br_fiscal.fiscal_res_company_form
report_purchaseorder_document_l10n_br_purchase report_purchaseorder_document_l10n_br_purchase ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_order_comment_rel' string='Comments'
  • company_country_id Many2one
    related='company_id.country_id'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
  • ie Char
    related='partner_id.inscr_est' string='State Tax Number/RG'
  • legal_name Char
    related='partner_id.legal_name' string='Legal Name'
  • operation_name Char
    copy=False
Public methods (1)
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model

New fields (9)
  • comment_ids Many2many → l10n_br_fiscal.comment
    column1='purchase_line_id' column2='comment_id' comodel_name='l10n_br_fiscal.comment' relation='purchase_order_line_comment_rel' string='Comments'
  • delivery_costs Selection
    related='company_id.delivery_costs'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
  • 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_line_tax_rel' string='Fiscal Taxes'
  • ind_final Selection
    related='order_id.ind_final'
  • quantity Float
    depends=['product_qty'] related='product_qty' string='Mixin Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' string='Tax Framework'
  • uom_id Many2one
    depends=['product_uom'] related='product_uom' string='Mixin UOM'
Public methods (0)

No public methods.

New fields (17)
  • cest_id Many2one → l10n_br_fiscal.cest
    comodel_name='l10n_br_fiscal.cest' string='CEST'
  • cfop_id Many2one → l10n_br_fiscal.cfop
    comodel_name='l10n_br_fiscal.cfop' string='CFOP'
  • cofins_value Float
    digits='Account' string='COFINS Value'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' readonly=True string='Fiscal Operation'
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' readonly=True string='Fiscal Operation Line'
  • fiscal_type Selection
    selection=PRODUCT_FISCAL_TYPE string='Tipo Fiscal'
  • freight_value Float
    digits='Account'
  • icms_value Float
    digits='Account' string='ICMS Value'
  • icmsst_value Float
    digits='Account' string='ICMS ST Value'
  • ii_value Float
    digits='Account' string='II Value'
  • insurance_value Float
    digits='Account'
  • ipi_value Float
    digits='Account' string='IPI Value'
  • nbm_id Many2one → l10n_br_fiscal.nbm
    comodel_name='l10n_br_fiscal.nbm' string='NBM'
  • ncm_id Many2one → l10n_br_fiscal.ncm
    comodel_name='l10n_br_fiscal.ncm' string='NCM'
  • other_value Float
    digits='Account'
  • pis_value Float
    digits='Account' string='PIS Value'
  • total_with_taxes Float
    digits='Account'
Public methods (0)

No public methods.

New fields (1)
  • purchase_fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=[('state', '=', 'approved'), ('fiscal_type', '=', 'purchase')] string='Default Fiscal Operation for Purchase'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_purchase
VERSION
VERSION 5.2.0
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRaphaël Valyi, Renato Lima, Luis Felipe Mileo, oca-travis, Weblate, OCA-git-bot, Magno Costa, Gabriel Cardoso de Faria
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-brazil
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_due_list
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_coa
    - l10n_br_fiscal
    - l10n_br_base
    - l10n_br_account_due_list
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - account_cancel
    - base_address_city
    - base_address_extended
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES erpbrasil.assinatura
erpbrasil.base
num2words
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
l10n_br_purchase_order_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
l10n_br_purchase_order_form l10n_br_purchase.order.form purchase.order xpath Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line xpath Inherits purchase.purchase_order_line_form2
l10n_br_purchase_report_search l10n_br_purchase.report.search purchase.report filter Inherits purchase.view_purchase_order_search
l10n_br_purchase_res_company_form l10n_br_purchase.res.company.form res.company xpath Inherits l10n_br_fiscal.fiscal_res_company_form
report_purchaseorder_document_l10n_br_purchase report_purchaseorder_document_l10n_br_purchase ir.ui.view qweb Inherits purchase.report_purchaseorder_document
Models touched (6)

New fields (0)

No new fields.

Public methods (1)
  • purchase_order_change(self)
    @api.onchange('purchase_id')

New fields (0)

No new fields.

Public methods (1)
  • new(self, values=None, ref=None)
    @api.model

New fields (4)
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
  • ie Char
    related='partner_id.inscr_est' string='State Tax Number/RG'
  • legal_name Char
    related='partner_id.legal_name' string='Legal Name'
Public methods (1)
  • fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)
    @api.model

New fields (7)
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' default=_default_fiscal_operation domain=<expr> readonly=True states={'draft': [('readonly', False)]}
  • 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_line_tax_rel' string='Fiscal Taxes'
  • ind_final Selection
    related='order_id.ind_final'
  • quantity Float
    depends=['product_qty'] related='product_qty' string='Mixin Quantity'
  • tax_framework Selection
    related='order_id.company_id.tax_framework' selection=TAX_FRAMEWORK string='Tax Framework'
  • uom_id Many2one
    depends=['product_uom'] related='product_uom' string='Mixin UOM'
Public methods (0)

No public methods.

New fields (17)
  • cest_id Many2one → l10n_br_fiscal.cest
    comodel_name='l10n_br_fiscal.cest' string='CEST'
  • cfop_id Many2one → l10n_br_fiscal.cfop
    comodel_name='l10n_br_fiscal.cfop' string='CFOP'
  • cofins_value Float
    digits=dp.get_precision('Account') string='COFINS Value'
  • fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' readonly=True string='Fiscal Operation'
  • fiscal_operation_line_id Many2one → l10n_br_fiscal.operation.line
    comodel_name='l10n_br_fiscal.operation.line' readonly=True string='Fiscal Operation Line'
  • fiscal_type Selection
    selection=PRODUCT_FISCAL_TYPE string='Tipo Fiscal'
  • freight_value Float
    digits=dp.get_precision('Account') string='Freight Value'
  • icms_value Float
    digits=dp.get_precision('Account') string='ICMS Value'
  • icmsst_value Float
    digits=dp.get_precision('Account') string='ICMS ST Value'
  • ii_value Float
    digits=dp.get_precision('Account') string='II Value'
  • insurance_value Float
    digits=dp.get_precision('Account') string='Insurance Value'
  • ipi_value Float
    digits=dp.get_precision('Account') string='IPI Value'
  • nbm_id Many2one → l10n_br_fiscal.nbm
    comodel_name='l10n_br_fiscal.nbm' string='NBM'
  • ncm_id Many2one → l10n_br_fiscal.ncm
    comodel_name='l10n_br_fiscal.ncm' string='NCM'
  • other_value Float
    digits=dp.get_precision('Account') string='Other Value'
  • pis_value Float
    digits=dp.get_precision('Account') string='PIS Value'
  • total_with_taxes Float
    digits=dp.get_precision('Account') string='Total with Taxes'
Public methods (0)

No public methods.

New fields (1)
  • purchase_fiscal_operation_id Many2one → l10n_br_fiscal.operation
    comodel_name='l10n_br_fiscal.operation' domain=[('state', '=', 'approved'), ('fiscal_type', '=', 'purchase')] string='Default Fiscal Operation for Purchase'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/10.0/l10n_br_purchase
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSRenato Lima, OCA-git-bot, Magno Costa
WEBSITE
WEBSITEhttp://odoo-brasil.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:54
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_product_fiscal_classification
    - account_fiscal_position_rule
    - account_fiscal_position_rule_stock
    - account_fiscal_position_rule_purchase
OCA/account-invoicing:
    - stock_picking_invoicing
OCA/bank-payment:
    - account_payment_mode
    - account_payment_partner
OCA/l10n-brazil:
    - l10n_br_stock_account
    - l10n_br_account_product
    - l10n_br_account
    - l10n_br_generic
    - l10n_br_base
    - l10n_br_stock
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - l10n_generic_coa
    - account_cancel
    - stock
    - procurement
    - barcodes
    - stock_account
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES num2words
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form1 l10n_br_purchase.order.form1 purchase.order field Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form2
view_l10n_br_purchase_company_form l10n_br_purchase.res.company.form res.company page Inherits l10n_br_account_product.l10n_br_account_product_company_form
view_l10n_br_purchase_partner_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • amount_tax Monetary
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The tax amount' store=True string='Taxes'
  • amount_total Monetary
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The total amount' store=True string='Total'
  • amount_untaxed Monetary
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The amount without tax' store=True string='Untaxed Amount'
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    default=_default_fiscal_category domain="[('type', '=', 'input'), ('state', '=', 'approved'),\n ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • ie Char
    related='partner_id.inscr_est' string='Inscrição Estadual'
  • legal_name Char
    related='partner_id.legal_name' string='Razão Social'
Public methods (1)
  • onchange_fiscal(self)
    @api.onchange('fiscal_category_id', 'fiscal_position_id', 'company_id')

New fields (2)
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('type', '=', 'input'), ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • fiscal_position_id Many2one → account.fiscal.position
    domain="[('fiscal_category_id', '=', fiscal_category_id)]" args: 'account.fiscal.position', 'Posição Fiscal'
Public methods (2)
  • onchange_fiscal(self)
    @api.multi@api.onchange('fiscal_category_id', 'fiscal_position_id')
  • onchange_product_id(self)
    @api.onchange('product_id')

New fields (1)
  • purchase_fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal Padrão Compras'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/9.0/l10n_br_purchase
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSrenato
WEBSITE
WEBSITEhttp://odoo-brasil.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_fiscal_position_rule
    - account_product_fiscal_classification
    - account_fiscal_position_rule_stock
    - account_fiscal_position_rule_purchase
OCA/l10n-brazil:
    - l10n_br_stock_account
    - l10n_br_account_product
    - l10n_br_data_account
    - l10n_br_account
    - l10n_br_base
    - l10n_br_stock
OCA/server-tools:
    - web_context_tunnel
odoo/odoo:
    - l10n_br
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
    - account_cancel
    - l10n_generic_coa
    - stock
    - procurement
    - barcodes
    - stock_account
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES num2words
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form1 l10n_br_purchase.order.form1 purchase.order field Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
view_l10n_br_purchase_company_form l10n_br_purchase.res.company.form res.company page Inherits l10n_br_account_product.view_l10n_br_account_company_form
view_l10n_br_purchase_partner_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • amount_tax Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The tax amount' store=True string='Taxes'
  • amount_total Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The total amount' store=True string='Total'
  • amount_untaxed Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The amount without tax' store=True string='Untaxed Amount'
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    default=_default_fiscal_category domain="[('type', '=', 'input'), ('state', '=', 'approved'),\n ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • ie Char
    related='partner_id.inscr_est' string='Inscrição Estadual'
  • legal_name Char
    related='partner_id.legal_name' string='Razão Social'
Public methods (2)
  • action_invoice_create(self)
    @api.multi
  • onchange_fiscal(self)
    @api.onchange('fiscal_category_id', 'fiscal_position')

New fields (2)
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('type', '=', 'input'), ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • fiscal_position Many2one → account.fiscal.position
    domain="[('fiscal_category_id', '=', fiscal_category_id)]" args: 'account.fiscal.position', 'Posição Fiscal'
Public methods (3)
  • onchange_fiscal(self)
    @api.onchange('fiscal_category_id', 'fiscal_position')
  • onchange_product_id(self, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, state='draft')
    @api.multi
    Método para implementar a inclusão dos campos categoria fiscal e posição fiscal de acordo com valores padrões e regras de posicões fiscais
  • onchange_product_uom(self, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, state='draft')
    @api.multi
    Método adaptado para a nova API já que este mesmo chama o método onchange_product_id

New fields (1)
  • purchase_fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal Padrão Compras'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/8.0/l10n_br_purchase
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSStéphane Bidoul, Raphaël Valyi, Renato Lima, Luis Felipe Mileo, sadamo, mstuttgart, Magno Costa - Akretion, renato, Hendrix Costa, Developer
WEBSITE
WEBSITEhttp://odoo-brasil.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_fiscal_position_rule
    - account_product_fiscal_classification
    - account_fiscal_position_rule_stock
    - account_fiscal_position_rule_purchase
OCA/l10n-brazil:
    - l10n_br_stock_account
    - l10n_br_account_product
    - l10n_br_data_account
    - l10n_br_account
    - l10n_br_base
    - l10n_br_stock
OCA/server-tools:
    - web_context_tunnel
odoo/odoo:
    - l10n_br
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
    - account_chart
    - account_cancel
    - stock
    - procurement
    - web_kanban_gauge
    - web_kanban_sparkline
    - stock_account
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES num2words
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form1 l10n_br_purchase.order.form1 purchase.order field Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
view_l10n_br_purchase_company_form l10n_br_purchase.res.company.form res.company page Inherits l10n_br_account_product.view_l10n_br_account_company_form
view_l10n_br_purchase_partner_filter l10n_br_purchase.partner.filter purchase.order field Inherits purchase.view_purchase_order_filter
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (7)
  • amount_tax Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The tax amount' store=True string='Taxes'
  • amount_total Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The total amount' store=True string='Total'
  • amount_untaxed Float
    compute='_compute_amount' digits=dp.get_precision('Purchase Price') help='The amount without tax' store=True string='Untaxed Amount'
  • cnpj_cpf Char
    related='partner_id.cnpj_cpf' string='CNPJ/CPF'
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    default=_default_fiscal_category domain="[('type', '=', 'input'), ('state', '=', 'approved'),\n ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • ie Char
    related='partner_id.inscr_est' string='Inscrição Estadual'
  • legal_name Char
    related='partner_id.legal_name' string='Razão Social'
Public methods (2)
  • action_invoice_create(self)
    @api.multi
  • onchange_fiscal(self)
    @api.onchange('fiscal_category_id', 'fiscal_position')

New fields (2)
  • fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('type', '=', 'input'), ('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal'
  • fiscal_position Many2one → account.fiscal.position
    domain="[('fiscal_category_id', '=', fiscal_category_id)]" args: 'account.fiscal.position', 'Posição Fiscal'
Public methods (3)
  • onchange_fiscal(self)
    @api.onchange('fiscal_category_id', 'fiscal_position')
  • onchange_product_id(self, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, state='draft')
    @api.multi
    Método para implementar a inclusão dos campos categoria fiscal e posição fiscal de acordo com valores padrões e regras de posicões fiscais
  • onchange_product_uom(self, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, state='draft')
    @api.multi
    Método adaptado para a nova API já que este mesmo chama o método onchange_product_id

New fields (1)
  • purchase_fiscal_category_id Many2one → l10n_br_account.fiscal.category
    domain="[('journal_type', '=', 'purchase')]" args: 'l10n_br_account.fiscal.category', 'Categoria Fiscal Padrão Compras'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/7.0/l10n_br_purchase
VERSION
VERSION 7.0
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSAkretion, OpenERP Brasil
MAINTAINERS
MAINTAINERSAkretion, OpenERP Brasil
COMMITTERS
COMMITTERSRaphaël Valyi, Renato Lima, Danimar Ribeiro, mileo, Magno
WEBSITE
WEBSITEhttp://openerpbrasil.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_fiscal_position_rule
    - account_product_fiscal_classification
    - account_fiscal_position_rule_stock
    - account_fiscal_position_rule_purchase
OCA/l10n-brazil:
    - l10n_br_stock
    - l10n_br_account_product
    - l10n_br_account
    - l10n_br_base
    - l10n_br_product
OCA/server-tools:
    - web_context_tunnel
odoo/odoo:
    - l10n_br
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
    - account_chart
    - stock
    - purchase
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Brazilian Localization for Purchase

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
l10n_br_purchase_order_form1 l10n_br_purchase.order.form1 purchase.order field Inherits purchase.purchase_order_form
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
view_l10n_br_purchase_company_form l10n_br_purchase.res.company.form res.company page Inherits l10n_br_account_product.view_l10n_br_account_company_form
Models touched (3)

New fields (0)

No new fields.

Public methods (5)
  • action_invoice_create(self, cr, uid, ids, *args)
  • onchange_company_id(self, cr, uid, ids, partner_id, dest_address_id, company_id, context=None, **kwargs)
  • onchange_dest_address_id(self, cr, uid, ids, partner_id, dest_address_id, company_id, context, **kwargs)
  • onchange_fiscal_category_id(self, cr, uid, ids, partner_id=False, dest_address_id=False, company_id=False, context=None, fiscal_category_id=False, **kwargs)
  • onchange_partner_id(self, cr, uid, ids, partner_id=False, company_id=False, context=None, **kwargs)

New fields (0)

No new fields.

Public methods (3)
  • onchange_fiscal_category_id(self, cr, uid, ids, partner_id, dest_address_id=False, product_id=False, fiscal_category_id=False, company_id=False, context=None, **kwargs)
  • onchange_fiscal_position(self, cr, uid, ids, partner_id, dest_address_id=False, product_id=False, fiscal_position=False, fiscal_category_id=False, company_id=False, context=None, **kwargs)
  • onchange_product_id(self, cr, uid, ids, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-brazil
GIT
GIThttps://github.com/OCA/l10n-brazil.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-brazil/tree/6.1/l10n_br_purchase
VERSION
VERSION 0.6
CATEGORY
CATEGORYLocalisation
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSAkretion, OpenERP Brasil
MAINTAINERS
MAINTAINERSAkretion, OpenERP Brasil
COMMITTERS
COMMITTERSRaphaël Valyi, Renato Lima, Leonardo Santagada
WEBSITE
WEBSITEhttp://openerpbrasil.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-fiscal-rule:
    - account_fiscal_position_rule
    - account_product_fiscal_classification
    - account_fiscal_position_rule_purchase
OCA/l10n-brazil:
    - l10n_br_account
    - l10n_br_base
odoo/odoo:
    - l10n_br
    - account
    - base_setup
    - base
    - product
    - process
    - decimal_precision
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
    - account_chart
    - purchase
    - stock
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Brazilian Localization for Purchase

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
l10n_br_purchase_order_line_form l10n_br_purchase.order.line.form purchase.order.line field Inherits purchase.purchase_order_line_form
l10n_br_purchase_order_line_form2 l10n_br_purchase.order.line.form2 purchase.order.line field Inherits purchase.purchase_order_line_form
view_l10n_br_order_form l10n_br_purchase.order.form purchase.order field Inherits purchase.purchase_order_form
view_l10n_br_order_form1 l10n_br_purchase.order.form1 purchase.order field Inherits account_fiscal_position_rule_purchase.view_account_fiscal_position_rule_purchase_order_form1
view_l10n_br_order_form2 l10n_br_purchase.order.form2 purchase.order field Inherits account_fiscal_position_rule_purchase.view_account_fiscal_position_rule_purchase_order_form2
view_l10n_br_purchase_company_form l10n_br_account.company res.company page Inherits l10n_br_account.view_l10n_br_account_company_form
Models touched (0)

No models found for this module.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-brazil
PULL REQUEST
PULL REQUEST[18.0][MIG] l10n_br_purchase (#4458)