Sale Delivery Block

sale_delivery_block
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/9.0/sale_delivery_block
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Eficent
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Eficent
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, Rafael Blasco, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/sale-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - web_tip
    - web_planner
    - procurement
    - stock_account
    - stock
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
sale_delivery_block_reason_form_view sale.delivery.block.reason.form sale.delivery.block.reason form New
sale_delivery_block_reason_tree_view sale.delivery.block.reason.tree sale.delivery.block.reason tree New
view_order_form sale.order.form - sale_delivery_block extension sale.order field Inherits sale.view_order_form
view_partner_form res.partner.form res.partner field Inherits base.view_partner_form
view_sales_order_filter sale.order.list.select sale.order field Inherits sale.view_sales_order_filter
Models touched (4)

New fields (1)
  • default_delivery_block Many2one → sale.delivery.block.reason
    comodel_name='sale.delivery.block.reason' help='Set a reason to block by default the deliveries in this customer sales orders.' string='Default Delivery Block Reason'
Public methods (0)

No public methods.

New fields (3)
  • description Text
    string='Description'
  • name Char
    required=True string='Name'
  • sale_order_ids One2many → sale.order
    comodel_name='sale.order' inverse_name='delivery_block_id' readonly=True string='Sale Orders'
Public methods (0)

No public methods.

New fields (1)
  • delivery_block_id Many2one → sale.delivery.block.reason
    comodel_name='sale.delivery.block.reason' readonly=True states={'draft': [('readonly', False)], 'sent': [('readonly', False)]} string='Delivery Block Reason' track_visibility='always'
Public methods (3)
  • action_remove_delivery_block(self)
    @api.multi
    Remove the delivery block and create procurements as usual.
  • copy(self, default=None)
    @api.multi
  • onchange_partner_id(self)
    @api.multi@api.onchange('partner_id')
    Add the 'Default Delivery Block Reason' if set in the partner.

New fields (0)

No new fields.

Public methods (0)

No public methods.