OdooWiki OCA HUB

L10n Br Product Contract

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

This module extends the functionality of product_contact to support l10n_br_contract and to allow you to create fiscal documents with the same fiscal configuration of the sale orders.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

When a sales order is turned into a contract, this module copies the Brazilian fiscal information (fiscal operation, taxes, NCM and service details) from the order and its lines into the contract, so recurring contracts keep the same fiscal setup as the sale.

This module links Brazilian sales orders with recurring contracts. It does not add new screens or menus; it changes what happens behind the scenes when a contract is generated from a sales order.

  • When a contract is created from a sales order, the fiscal data configured on the order is carried over to the contract header.
  • When contract lines are created from sales order lines, the fiscal data of each line is carried over as well.
  • This means the Brazilian fiscal operation, tax rules and product fiscal classification already chosen on the sale are reused in the contract, instead of being entered again.

It works together with the Brazilian sales, Brazilian contract and product contract modules, and touches the sale.order and sale.order.line models. The demo data shows a recurring service product marked as contract, with a monthly pre-paid recurring rule, used on a sales order that references a Brazilian fiscal operation for services.

No new menus, buttons, reports, checks or scheduled jobs are added by the code shown; the change is limited to preparing the values used when contracts and contract lines are created from sales orders.

Models and fields (2)
  • sale.order · extends an existing model
  • sale.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 17.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: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 17.0

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

terminal Installation and usage

OCA documentation · Odoo 17.0

To install this module, you need to:

  • Do nothing

To configure this module, you need to:

  • Do nothing

To use this module, you need to:

  • Configure the product type as service.
  • Configure the products as contracts;
  • Create a sale order, with this product and confirm.
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.