Add "To Send" and "To Validate" states in Invoices

account_invoice_validation_workflow
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/10.0/account_invoice_validation_workflow
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Invoicing
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds 2 states between draft and open state in invoices:

- To Validate: For invoices which need a validation
- To Send: For all invoices that need to be sent

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_form_validation_wkfl account.invoice.form.validation.wkfl account.invoice xpath Inherits account.invoice_form
invoice_supplier_form_validation_wkfl account.invoice.supplier.form.validation.wkfl account.invoice xpath Inherits account.invoice_supplier_form
view_account_invoice_filter account.invoice.valid_wkf.select account.invoice xpath Inherits account.view_account_invoice_filter
Models touched (2)

New fields (1)
  • state Selection
    readonly=True select=True args: [('draft', 'Draft'), ('to_send', 'To Send'), ('to_valid', 'To Validate'), ('proforma2', 'Pro-forma'), ('open', 'Open'), ('paid', 'Paid'), ('cancel', 'Canceled')], 'State'
Public methods (1)
  • action_to_valid(self)
    @api.multi
    Check if analytic account of each lines is not closed

New fields (0)

No new fields.

Public methods (1)
  • compute_refund(self, cr, uid, ids, mode='refund', context=None)
    @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/9.0/account_invoice_validation_workflow
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Invoicing
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - report
    - analytic
    - web_tip
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds 2 states between draft and open state in invoices:

- To Validate: For invoices which need a validation
- To Send: For all invoices that need to be sent

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_form_validation_wkfl account.invoice.form.validation.wkfl account.invoice xpath Inherits account.invoice_form
invoice_supplier_form_validation_wkfl account.invoice.supplier.form.validation.wkfl account.invoice xpath Inherits account.invoice_supplier_form
view_account_invoice_filter account.invoice.valid_wkf.select account.invoice xpath Inherits account.view_account_invoice_filter
Models touched (2)

New fields (1)
  • state Selection
    readonly=True select=True args: [('draft', 'Draft'), ('to_send', 'To Send'), ('to_valid', 'To Validate'), ('proforma2', 'Pro-forma'), ('open', 'Open'), ('paid', 'Paid'), ('cancel', 'Canceled')], 'State'
Public methods (1)
  • action_to_valid(self)
    @api.multi
    Check if analytic account of each lines is not closed

New fields (0)

No new fields.

Public methods (1)
  • compute_refund(self, cr, uid, ids, mode='refund', context=None)
    @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/8.0/account_invoice_validation_workflow
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYGeneric Modules/Invoicing
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Romain Deheele, Alexandre Fayolle, Stéphane Bidoul (ACSONE), OCA Transbot, OCA-git-bot, Matjaž Mozetič
WEBSITE
WEBSITEhttp://camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - report
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds 2 states between draft and open state in invoices:

- To Validate: For invoices which need a validation
- To Send: For all invoices that need to be sent

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
invoice_form_validation_wkfl account.invoice.form.validation.wkfl account.invoice xpath Inherits account.invoice_form
invoice_supplier_form_validation_wkfl account.invoice.supplier.form.validation.wkfl account.invoice xpath Inherits account.invoice_supplier_form
view_account_invoice_filter account.invoice.valid_wkf.select account.invoice xpath Inherits account.view_account_invoice_filter
Models touched (2)

New fields (1)
  • state Selection
    readonly=True select=True args: [('draft', 'Draft'), ('to_send', 'To Send'), ('to_valid', 'To Validate'), ('proforma2', 'Pro-forma'), ('open', 'Open'), ('paid', 'Paid'), ('cancel', 'Canceled')], 'State'
Public methods (1)
  • action_to_valid(self)
    @api.multi
    Check if analytic account of each lines is not closed

New fields (0)

No new fields.

Public methods (1)
  • compute_refund(self, cr, uid, ids, mode='refund', context=None)
    @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: the account invoice refund’s ID or list of IDs