Move in draft state by default

account_default_draft_move
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/10.0/account_default_draft_move
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_constraints
odoo/odoo:
    - base
    - account
    - base_setup
    - 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

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
invoice_form_customer_group_invoice Show Cancel invoice button customer account.invoice xpath Inherits account.invoice_form
invoice_form_supplier_group_invoice Show Cancel invoice button supplier account.invoice xpath Inherits account.invoice_supplier_form
view_account_config_settings account.config.settings.inherit account.config.settings div Inherits account.view_account_config_settings
view_move_form_remove_button account.move.form.remove.button account.move data Inherits account.view_move_form
Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • button_confirm_bank(self)
    @api.multi

New fields (0)

No new fields.

Public methods (2)
  • default_get(self, cr, uid, fields, context=None)
  • set_parameters(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self)
    @api.multi
    Set move line in draft state after creating them.

New fields (1)
  • entry_posted Boolean
    help="Check this box if you don't want new journal entries\nto pass through the 'draft' state and instead goes directly\nto the 'posted state' without any manual validation." string="Skip 'Draft' State"
Public methods (0)

No public methods.

New fields (1)
  • update_posted Boolean
    compute='_is_update_posted' string='Allow Cancelling Entries'
Public methods (1)
  • button_cancel(self)
    @api.multi
    We rewrite function button_cancel, to allow invoice or bank statement with linked draft moved to be canceled
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/9.0/account_default_draft_move
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE)
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_constraints
odoo/odoo:
    - base
    - account
    - base_setup
    - 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

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
invoice_form_customer_group_invoice Show Cancel invoice button customer account.invoice xpath Inherits account.invoice_form
invoice_form_supplier_group_invoice Show Cancel invoice button supplier account.invoice xpath Inherits account.invoice_supplier_form
view_account_config_settings account.config.settings.inherit account.config.settings div Inherits account.view_account_config_settings
view_move_form_remove_button account.move.form.remove.button account.move data Inherits account.view_move_form
Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • button_confirm_bank(self)
    @api.multi

New fields (0)

No new fields.

Public methods (2)
  • default_get(self, cr, uid, fields, context=None)
  • set_parameters(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self)
    @api.multi
    Set move line in draft state after creating them.

New fields (1)
  • entry_posted Boolean
    help="Check this box if you don't want new journal entries\nto pass through the 'draft' state and instead goes directly\nto the 'posted state' without any manual validation." string="Skip 'Draft' State"
Public methods (0)

No public methods.

New fields (1)
  • update_posted Boolean
    compute='_is_update_posted' string='Allow Cancelling Entries'
Public methods (1)
  • button_cancel(self)
    @api.multi
    We rewrite function button_cancel, to allow invoice or bank statement with linked draft moved to be canceled
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/8.0/account_default_draft_move
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp, ACSONE SA/NV
COMMITTERS
COMMITTERSStéphane Bidoul, Yannick Vaucher, Alexandre Fayolle, Leonardo Pistone, Nicolas Bessi, GitHub, Andrea, Stéphane Bidoul (ACSONE), OCA Transbot, Adrien Peiffer, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_constraints
odoo/odoo:
    - base
    - account
    - base_setup
    - 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

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
invoice_form_customer_group_invoice Show Cancel invoice button customer account.invoice xpath Inherits account.invoice_form
invoice_form_supplier_group_invoice Show Cancel invoice button supplier account.invoice xpath Inherits account.invoice_supplier_form
view_account_config_settings account.config.settings.inherit account.config.settings div Inherits account.view_account_config_settings
view_move_form_remove_button account.move.form.remove.button account.move data Inherits account.view_move_form
Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • button_confirm_bank(self)
    @api.multi

New fields (0)

No new fields.

Public methods (2)
  • default_get(self, cr, uid, fields, context=None)
  • set_parameters(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self)
    @api.multi
    Set move line in draft state after creating them.

New fields (1)
  • entry_posted Boolean
    help="Check this box if you don't want new journal entries\nto pass through the 'draft' state and instead goes directly\nto the 'posted state' without any manual validation." string="Skip 'Draft' State"
Public methods (0)

No public methods.

New fields (1)
  • update_posted Boolean
    compute='_is_update_posted' string='Allow Cancelling Entries'
Public methods (1)
  • button_cancel(self)
    @api.multi
    We rewrite function button_cancel, to allow invoice or bank statement with linked draft moved to be canceled
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/7.0/account_default_draft_move
VERSION
VERSION 1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSYannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Matthieu Dietrich, Laetitia Gangloff, Joel Grand-Guillaume, Pedro M. Baeza, Nicolas Bessi, unknown, Vincent Renaville, Launchpad Translations on behalf of account-core-editors, OCA Transbot, Rudolf Schnapka
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:14
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_constraints
odoo/odoo:
    - base
    - account
    - base_setup
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Let the generated move in draft on invoice and bank statement
validation. The main reason is to ease the user work day-to-day. At
first we used account_cancel, but this module allow to cancel posted
move and that's not allowed.

Two needs here:

- We want to be able to cancel an invoice (as soon as move are not
  validated) without making a refund. Posted move can't be canceled.
- We want to ensure all move generated from bank statement and invoice
  are generated in draft so we can still change them if needed.

Use this module with account_constraints (find it here:
https://launchpad.net/account-financial-tools or in
http://apps.openerp.com) and you'll get closely the same feature as
account_cancel, but with the insurance that user won't change posted
move.

The new framework will then be: always work with draft moves, allowing
people to change what they want. At the end of the period, validate all
moves. Till there, you ensure no-one can change something (or they'll
need to make a refund).

    

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
invoice_form_customer_group_invoice Show Cancel invoice button customer account.invoice xpath Inherits account.invoice_form
invoice_form_supplier_group_invoice Show Cancel invoice button supplier account.invoice xpath Inherits account.invoice_supplier_form
view_account_config_settings account.config.settings.inherit account.config.settings div Inherits account.view_account_config_settings
view_move_form_remove_button account.move.form.remove.button account.move data Inherits account.view_move_form
Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None)

New fields (0)

No new fields.

Public methods (2)
  • default_get(self, cr, uid, fields, context=None)
  • set_parameters(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self, cr, uid, ids, context=None)
    Set move line in draft state after creating them.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • button_cancel(self, cr, uid, ids, context=None)
    We rewrite function button_cancel, to allow invoice or bank statement with linked draft moved to be canceled
REPOSITORY
REPOSITORYOCA/account-financial-tools
GIT
GIThttps://github.com/OCA/account-financial-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-financial-tools/tree/6.1/account_default_draft_move
VERSION
VERSION 1.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSAlexandre Fayolle, Joel Grand-Guillaume
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:04:06
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-financial-tools:
    - account_constraints
odoo/odoo:
    - base
    - account
    - base_setup
    - product
    - process
    - decimal_precision
    - analytic
    - board
    - edi
    - email_template
    - mail
    - base_tools
    - account_voucher
    - account_payment
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Let the generated move in draft on invoice and bank statement
validation. The main reason is to ease the user's day-to-day work. At
first we used account_cancel, but this module allow to cancel posted
move and that's not allowed.

Two needs here:

- We want to be able to cancel an invoice (as soon as move are not
  validated) without making a refund. Posted move can't be
  canceled.

- We want to ensure all moves generated from bank statements and
  invoices are generated in draft state so we can still change them if
  needed.

Use this module with account_constraints
(https://launchpad.net/account-financial-tools or in http://apps.openerp.com)
and you'll get closely the same feature as account_cancel, but with the
insurance that user won't change posted move.

The new framework will then be: always work with draft moves,
allowing people to change what they want. At the end of the
period, validate all moves. Until then, you ensure no-one can
change something (or they'll need to make a refund).
    

Code Analysis

Views touched (0)

No views found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self, cr, uid, ids, context=None)
    Set move line in draft state after creating them.