Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
1.1.1
Category
Sales Management
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/sale-workflow
Last tracking update
2026-08-07 08:42:49
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Jacques-Etienne Baudoux, sergiocorato, Weblate, Marie Lejeune, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
openupgradelib
System dependencies
None
Required by
None
Description
This module adds an invoicing policy on sale order level in order to
apply that invoicing policy on the whole sale order.

That invoicing policy can take three values:

- Products Invoicing Policy: The sale order will follow the standard
  behavior and apply the policy depending on products configurations.
- Ordered Quantities: The sale order will invoice the ordered
  quantities.
- Delivered Quantities: The sale order will invoice the delivered
  quantities.

Following the chosen policy, the quantity to invoice and the amount to
invoice on each line will be computed accordingly.

You will be able also to define a default invoicing policy (globally per
company) that can be different than the default invoicing policy for new
products.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order form Inherits sale.view_order_form
view_sales_config sale settings res.config.settings form Inherits sale.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • sale_default_invoice_policy Selection
    default='product' help='This will be the default invoice policy for sale orders.' required=True args: [('product', 'Products Invoice Policy'), ('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
Public methods (0)

No public methods.

New fields (1)
  • sale_default_invoice_policy Selection
    readonly=False related='company_id.sale_default_invoice_policy'
Public methods (0)

No public methods.

New fields (1)
  • invoice_policy Selection
    compute='_compute_invoice_policy' help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' precompute=True readonly=False required=True store=True args: [('product', 'Products Invoice Policy'), ('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
251 days ago
Last activity
27 days ago
Repository
OCA/sale-workflow
Pull request
[19.0][MIG] sale_invoice_policy: Migration to 19.0 (#4071)