Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:23:03
Authors
Odoo Community Association (OCA), elego Software Solutions GmbH
Maintainers
Odoo Community Association (OCA), elego Software Solutions GmbH
Committers
micheledic, Weblate, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds the fields *Start Date* and *End Date* on purchase order
lines (requied fields when the product has the *Must Have Start and End
Dates* property). You can also define a *Default Start Date* and
*Default End Date* on the purchase order; when set, these dates will be used
by default on new purchase order lines. Upon invoice creation, the values of
the start/end dates of the purchase order line are copied to the start/end
dates of invoice lines.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form.start.end.dates. purchase.order form Inherits purchase.purchase_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (2)
  • default_end_date Date
  • default_start_date Date
Public methods (2)
  • default_end_date_change(self)
    @api.onchange('default_end_date')
  • default_start_date_change(self)
    @api.onchange('default_start_date')

New fields (4)
  • end_date Date
    readonly=True
  • must_have_dates Boolean
    related='product_id.must_have_dates'
  • number_of_days Integer
    compute='_compute_number_of_days' inverse='_inverse_number_of_days' readonly=False store=True string='Number of Days'
  • start_date Date
    readonly=True
Public methods (3)
  • end_date_change(self)
    @api.onchange('end_date')
  • start_date_change(self)
    @api.onchange('start_date')
  • start_end_dates_product_id_change(self)
    @api.onchange('product_id')

Loading…