OdooWiki OCA HUB

Brazilian Localization Purchase Blanket Order

l10n_br_purchase_blanket_order folder_open OCA/l10n-brazil open_in_new
Uncategorised License: AGPL-3

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).

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds Brazilian fiscal data to purchase blanket orders: fiscal operation, taxes, CFOP, CNAE and comments on the agreement and its lines, and carries that data into the requests for quotation generated from it.

This module makes purchase blanket orders (long-term purchase agreements) usable for Brazilian tax and fiscal document purposes. On the blanket order form you get new fields: a required Fiscal Operation (only approved operations can be chosen), customer/company indicator fields, and additional fiscal text fields. The partner's CNPJ/CPF, legal name and state tax number are shown automatically from the supplier record.

On each blanket order line you can set the fiscal operation and its operation line, the fiscal taxes, CFOP, service and city/national taxation codes, CNAE code, fiscal quantity and fiscal price. The line form gains Taxes, Amounts, Extra Info and Accounting tabs showing fiscal amounts, withheld taxes and the accounting taxes used for the purchase. The list of lines shows fiscal operation, fiscal taxes and total columns.

When you use the wizard to create requests for quotation from the blanket order, the fiscal data of each line is copied to the new purchase order lines, and the fiscal operation of the blanket order is copied to the purchase order. The wizard blocks creation if lines have different fiscal operations or different currencies, and it still prevents ordering more than the remaining quantity. If the company is not Brazilian, the extra fiscal fields are not injected into the form.

Models and fields (3)
  • purchase.blanket.order · new modelcnpj_cpf (CNPJ/CPF), ind_pres, legal_name (Legal Name), comment_ids (Comments), operation_name, l10n_br_ie_code (State Tax Number/RG), fiscal_operation_id
  • purchase.blanket.order.line · new modeluom_id, cnae_id (CNAE Code), quantity (Product Uom Quantity), price_tax, country_id, partner_id (Partner), comment_ids (Comments), price_total, tax_framework (Tax Framework), fiscal_tax_ids (Fiscal Taxes), price_subtotal, fiscal_operation_id, fiscal_operation_line_id (Operation Line)
  • purchase.blanket.order.wizard · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/l10n-brazil.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Go to Purchase
  • Create or select a Purchase Blanket Order
  • Confirm the Purchase Blanket Order
  • Create Purchase Order

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.