Sale purchase requisition

sale_purchase_requisition
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_purchase_requisition
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYSale
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Moduon
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Moduon
COMMITTERS
COMMITTERSJairo Llopis, Weblate, OCA-git-bot, oca-ci, Andrea Cattalani
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
    - purchase_requisition
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_requisition_form_view_inherited purchase.requisition.form.inherited purchase.requisition xpath Inherits purchase_requisition.view_purchase_requisition_form
sale_view_order_form_inherited sale.order.form.inherited. sale.order xpath Inherits sale.view_order_form
Models touched (4)

New fields (3)
  • sale_id Many2one → sale.order
    comodel_name='sale.order' help='Sale order related to this purchase requisition.' string='Sale Order'
  • sale_order_sync_warning Char
    compute='_compute_sale_order_sync_warning' compute_sudo=True
  • sale_user_id Many2one → res.users
    comodel_name='res.users' related='sale_id.user_id' string='Sale Representative'
Public methods (0)

No public methods.

New fields (1)
  • line_order_id Many2one → sale.order.line
    comodel_name='sale.order.line' string='Sale Order Line'
Public methods (1)
  • write(self, values)

New fields (3)
  • open_purchase_requisition_count Integer
    compute='_compute_opened_purchase_requisition_count' help='Number of purchase requisitions in open state' string='Open Purchase Requisitions'
  • purchase_requisition_ids One2many → purchase.requisition
    comodel_name='purchase.requisition' inverse_name='sale_id' string='Purchase requisitions'
  • purchase_requisition_sync_warning Char
    compute='_compute_purchase_requisition_sync_warning' help='Warning message to be displayed when order lines are not synced with purchase requisitions'
Public methods (4)
  • action_cancel(self)
    Cancel the sale order and cancel or close the purchase requisition.
  • action_create_purchase_requisition(self)
  • action_view_purchase_requisitions(self)
    Return action to view purchase requisitions related to this sale order
  • write(self, vals)

New fields (1)
  • purchase_requisition_line_ids One2many → purchase.requisition.line
    comodel_name='purchase.requisition.line' inverse_name='line_order_id' string='Purchase requisition lines'
Public methods (1)
  • unlink(self)
    Delete purchase requisition lines when sale order line is deleted.