Sale invoice Policy

sale_invoice_policy
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/18.0/sale_invoice_policy
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSJacques-Etienne Baudoux, Weblate, OCA-git-bot, oca-ci, Marie Lejeune
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_partition
odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings xpath Inherits sale.res_config_settings_view_form
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.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/17.0/sale_invoice_policy
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, chien
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This modules helps to get Invoicing Policy on Sale Order Level without
breaking behaviour (as it is defined from \>= v10 on product level).

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings setting Inherits sale.res_config_settings_view_form
Models touched (3)

New fields (1)
  • sale_invoice_policy_required Boolean
    help='This makes Invoice Policy required on Sale Orders'
Public methods (2)
  • get_values(self)
    @api.model
  • set_values(self)

New fields (2)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' readonly=True args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy_required Boolean
    compute='_compute_invoice_policy_required' default=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/16.0/sale_invoice_policy
VERSION
VERSION 3.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSDenis Roussel, sergio-teruel, Weblate, OCA-git-bot, Luis J. Salvatierra, oca-ci, Ioan Galan (Studio73)
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:45
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - base_partition
odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES openupgradelib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings xpath Inherits sale.res_config_settings_view_form
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). This applies for storable products only.' precompute=True readonly=False required=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} 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.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/15.0/sale_invoice_policy
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSPedro M. Baeza, Weblate, OCA-git-bot, oca-ci, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:34
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_template_form_view_invoice_policy product.template.invoice.policy product.template field Inherits sale.product_template_form_view_invoice_policy
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings xpath Inherits sale.res_config_settings_view_form
Models touched (4)

New fields (2)
  • default_invoice_policy Selection
    default=<expr> help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' string='Default Invoicing Policy' args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy Selection
    compute='_compute_invoice_policy' inverse='_inverse_invoice_policy' readonly=True search='_search_invoice_policy' store=False
Public methods (0)

No public methods.

New fields (2)
  • sale_default_invoice_policy Selection
    readonly=True related='default_invoice_policy' string='Default Sale Invoice Policy'
  • sale_invoice_policy_required Boolean
    help='This makes Invoice Policy required on Sale Orders'
Public methods (2)
  • get_values(self)
    @api.model
  • set_values(self)

New fields (2)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy_required Boolean
    compute='_compute_invoice_policy_required' default=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/14.0/sale_invoice_policy
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Enrique Martín
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:58
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - sale_stock
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_template_form_view_invoice_policy product.template.invoice.policy product.template field Inherits sale.product_template_form_view_invoice_policy
sale_order_view_form_inherit_sale_invoice_policy sale.order.form (sale_invoice_policy) sale.order field Inherits sale.view_order_form
Models touched (3)

New fields (2)
  • default_invoice_policy Selection
    default=_default_default_invoice_policy help='Ordered Quantity: Invoice quantities ordered by the customer.\nDelivered Quantity: Invoice quantities delivered to the customer.' string='Default Invoicing Policy' args: [('order', 'Invoice what is ordered'), ('delivery', 'Invoice what is delivered')]
  • invoice_policy Selection
    compute='_compute_invoice_policy' inverse='_inverse_invoice_policy' readonly=True search='_search_invoice_policy' store=False
Public methods (0)

No public methods.

New fields (1)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice quantities ordered by the customer.\nDelivered Quantity: Invoice quantities delivered to the customer.' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} string='Invoicing Policy' args: [('order', 'Invoice what is ordered'), ('delivery', 'Invoice what is delivered')]
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/13.0/sale_invoice_policy
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, Alexei Rivera
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
    - sale_stock
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_template_form_view_invoice_policy product.template.invoice.policy product.template field Inherits sale.product_template_form_view_invoice_policy
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings xpath Inherits sale.res_config_settings_view_form
Models touched (4)

New fields (2)
  • default_invoice_policy Selection
    default=<expr> help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' string='Default Invoicing Policy' args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy Selection
    compute='_compute_invoice_policy' inverse='_inverse_invoice_policy' readonly=True search='_search_invoice_policy' store=False
Public methods (0)

No public methods.

New fields (2)
  • sale_default_invoice_policy Selection
    readonly=True related='default_invoice_policy' selection=[('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')] string='Default Sale Invoice Policy'
  • sale_invoice_policy_required Boolean
    help='This makes Invoice Policy required on Sale Orders'
Public methods (2)
  • get_values(self)
    @api.model
  • set_values(self)

New fields (2)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy_required Boolean
    compute='_compute_invoice_policy_required' default=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/12.0/sale_invoice_policy
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSRenato Lima, Denis Roussel, OCA Transbot, ahenriquez, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - decimal_precision
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - sale_stock
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_template_form_view_invoice_policy product.template.invoice.policy product.template field Inherits sale.product_template_form_view_invoice_policy
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings res.config.settings xpath Inherits sale.res_config_settings_view_form
Models touched (4)

New fields (2)
  • default_invoice_policy Selection
    default='order' help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' string='Default Invoicing Policy' args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy Selection
    compute='_compute_invoice_policy' inverse='_inverse_invoice_policy' readonly=True search='_search_invoice_policy' store=False
Public methods (0)

No public methods.

New fields (2)
  • sale_default_invoice_policy Selection
    readonly=True related='default_invoice_policy' selection=[('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')] string='Default Sale Invoice Policy'
  • sale_invoice_policy_required Boolean
    help='This makes Invoice Policy required on Sale Orders'
Public methods (2)
  • get_values(self)
    @api.model
  • set_values(self)
    @api.multi

New fields (2)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy_required Boolean
    compute='_compute_invoice_policy_required' default=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/10.0/sale_invoice_policy
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSOCA Transbot, Miquel Raïch, oca-travis, OCA-git-bot, François Honoré
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_planner
    - procurement
    - sale_stock
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_template_form_view_invoice_policy product.template.invoice.policy product.template field Inherits sale.product_template_form_view_invoice_policy
sale_order_view_form_inherit_abi_product sale.order.form (abi_sale_invoice_policy) sale.order field Inherits sale.view_order_form
view_sales_config sale settings sale.config.settings group Inherits sale.view_sales_config
Models touched (4)

New fields (2)
  • default_invoice_policy Selection
    default='order' help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' string='Invoicing Policy' args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy Selection
    compute='_compute_invoice_policy' inverse='_inverse_invoice_policy' readonly=True search='_search_invoice_policy' store=False
Public methods (0)

No public methods.

New fields (2)
  • sale_default_invoice_policy Selection
    readonly=True related='default_invoice_policy' selection=[('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • sale_invoice_policy_required Boolean
    help='This makes Invoice Policy required on Sale Orders'
Public methods (3)
  • get_default_sale_invoice_policy_required(self, fields_list)
    @api.model
  • set_default_sale_default_invoice_policy(self)
    @api.multi
    Set value in an ir_value but get default from the related :return:
  • set_default_sale_invoice_policy_required(self)
    @api.multi

New fields (2)
  • invoice_policy Selection
    help='Ordered Quantity: Invoice based on the quantity the customer ordered.\nDelivered Quantity: Invoiced based on the quantity the vendor delivered (time or deliveries).' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} args: [('order', 'Ordered quantities'), ('delivery', 'Delivered quantities')]
  • invoice_policy_required Boolean
    compute='_compute_invoice_policy_required' default=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/sale-workflow
PULL REQUEST
PULL REQUEST[19.0][MIG] sale_invoice_policy: Migration to 19.0 (#4071)