Sale Orders Require PO or Sales Documentation

sale_require_po_doc
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/19.0/sale_require_po_doc
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Paula Marfull
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:48
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_management
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
The goal of this development is to create a field for validation to
notate which customers require a purchase order in order to create an
invoice.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sales_po_res_partner_custom res.partner.sales.po.custom res.partner group Inherits base.view_partner_form
sales_po_sale_order_custom sale.order.sales.po.custom sale.order field Inherits sale.view_order_form
Models touched (2)

New fields (2)
  • customer_need_po Boolean
    help='A PO number will be required on the Sales Order field for Customer Reference' string='Customer Requires PO' tracking=True
  • sale_doc Text
    help='Details of the sales documentation required for this customer. Sales documentation notes field will be required on Sales Orders This is complementary to requiring a PO number, and can be used with or without that setting.' string='Sales Require Documentation' tracking=True
Public methods (0)

No public methods.

New fields (4)
  • customer_need_po Boolean
    related='partner_id.customer_need_po' string='Customer Requires PO'
  • sale_doc Text
    related='partner_id.sale_doc' string='Sales Require Documentation'
  • sale_document_note Text
    string='Sale Documentation Notes'
  • sale_document_option Selection
    string='Sale Documentation' args: [('no_need', 'No documentation needed for this Sale'), ('done', 'Documentation required obtained and archived')]
Public methods (1)
  • action_confirm(self)
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_require_po_doc
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Aungkokolin1997, chaule97
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_management
    - 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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
The goal of this development is to create a field for validation to
notate which customers require a purchase order in order to create an
invoice.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sales_po_res_partner_custom res.partner.sales.po.custom res.partner group Inherits base.view_partner_form
sales_po_sale_order_custom sale.order.sales.po.custom sale.order xpath Inherits sale.view_order_form
Models touched (2)

New fields (2)
  • customer_need_po Boolean
    help='A PO number will be required on the Sales Order field for Customer Reference' string='Customer Requires PO' tracking=True
  • sale_doc Text
    help='Details of the sales documentation required for this customer. Sales documentation notes field will be required on Sales Orders This is complementary to requiring a PO number, and can be used with or without that setting.' string='Sales Require Documentation' tracking=True
Public methods (0)

No public methods.

New fields (4)
  • customer_need_po Boolean
    related='partner_id.customer_need_po' string='Customer Requires PO'
  • sale_doc Text
    related='partner_id.sale_doc' string='Sales Require Documentation'
  • sale_document_note Text
    string='Sale Documentation Notes'
  • sale_document_option Selection
    string='Sale Documentation' args: [('no_need', 'No documentation needed for this Sale'), ('done', 'Documentation required obtained and archived')]
Public methods (1)
  • action_confirm(self)
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_require_po_doc
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSJordi Ballester Alomar, OCA-git-bot, oca-ci
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_management
    - 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
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sales_po_res_partner_custom res.partner.sales.po.custom res.partner group Inherits base.view_partner_form
sales_po_sale_order_custom sale.order.sales.po.custom sale.order field Inherits sale.view_order_form
Models touched (2)

New fields (2)
  • customer_need_po Boolean
    help='A PO number will be required on the Sales Order field for Customer Reference' string='Customer Requires PO' tracking=True
  • sale_doc Text
    help='Details of the sales documentation required for this customer. Sales documentation notes field will be required on Sales Orders This is complementary to requiring a PO number, and can be used with or without that setting.' string='Sales Require Documentation' tracking=True
Public methods (0)

No public methods.

New fields (4)
  • customer_need_po Boolean
    readonly=True related='partner_id.customer_need_po' string='Customer Requires PO'
  • sale_doc Text
    readonly=True related='partner_id.sale_doc' string='Sales Require Documentation'
  • sale_document_note Text
    string='Sale Documentation Notes'
  • sale_document_option Selection
    string='Sale Documentation' args: [('no_need', 'No documentation needed for this Sale'), ('done', 'Documentation required obtained and archived')]
Public methods (1)
  • action_confirm(self)
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_require_po_doc
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSDenis Roussel, OCA Transbot, oca-travis, OCA-git-bot, Chandresh Thakkar, Khalid
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_management
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - decimal_precision
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
sales_po_res_partner_custom res.partner.sales.po.custom res.partner group Inherits base.view_partner_form
sales_po_sale_order_custom sale.order.sales.po.custom sale.order field Inherits sale.view_order_form
Models touched (2)

New fields (2)
  • customer_need_po Boolean
    help='A PO number will be required on the Sales Order field for Customer Reference' string='Customer Requires PO' track_visibility='onchange'
  • sale_doc Text
    help='Details of the sales documentation required for this customer. Sales documentation notes field will be required on Sales Orders This is complementary to requiring a PO number, and can be used with or without that setting.' string='Sales Require Documentation' track_visibility='onchange'
Public methods (0)

No public methods.

New fields (4)
  • customer_need_po Boolean
    readonly=True related='partner_id.customer_need_po' string='Customer Requires PO'
  • sale_doc Text
    readonly=True related='partner_id.sale_doc' string='Sales Require Documentation'
  • sale_document_note Text
    string='Sale Documentation Notes'
  • sale_document_option Selection
    string='Sale Documentation' args: [('no_need', 'No documentation needed for this Sale'), ('done', 'Documentation required obtained and archived')]
Public methods (1)
  • action_confirm(self)
    @api.multi