Point Of Sale - Store Draft Orders

pos_store_draft_order
REPOSITORY
REPOSITORYOCA/pos
GIT
GIThttps://github.com/OCA/pos.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/pos/tree/8.0/pos_store_draft_order
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPoint of Sale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSPedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate, Rafael Blasco
WEBSITE
WEBSITEhttp://www.odoo-community.org
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - point_of_sale
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - web_kanban_sparkline
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - board
    - edi
    - email_template
    - procurement
    - stock_account
    - stock
    - web_kanban_gauge
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
pos_config_view_form pos.config field Inherits point_of_sale.view_pos_config_form
pos_order_view_form pos.order field Inherits point_of_sale.view_pos_order_tree
Models touched (3)

New fields (1)
  • allow_store_draft_order Boolean
    help='If you check this field, users will have the possibility to let some PoS orders in a draft state, and allow the customer to paid later.\nOrder in a draft state will not generate entries during the close of the session.' string='Allow to Store Draft Orders'
Public methods (0)

No public methods.

New fields (1)
  • is_partial_paid Boolean
    compute='compute_is_partial_paid' store=True string='Is Partially Paid'
Public methods (1)
  • compute_is_partial_paid(self)
    @api.one@api.depends('state', 'statement_ids')

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals)
    @api.model
    Recover all PoS Order in 'draft' state and associate them to the new Pos Session
  • wkf_action_closing_control(self)
    @api.multi
    Remove all PoS Orders in 'draft' to the sessions we want to close. Check if there is any Partial Paid Orders