Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.05 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 09:06:27
Authors
Odoo Community Association (OCA), ForgeFlow
Maintainers
Odoo Community Association (OCA), ForgeFlow
Committers
Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds a Calendar to the ResPartner model. This calendar can
then used as the basis of the proper computation of start/end dates
based on the delivery lead time of the supplier in this and other
modules.

In this module, the calendar is considered in the computation of the
schedules date of a stock picking and in the order date of a purchase
order.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_supplierinfo_form_view product.supplierinfo.form.view product.supplierinfo form Inherits product.product_supplierinfo_form_view
product_supplierinfo_supplier_calendar_tree_view product.supplierinfo.supplier_calendar.tree.view product.supplierinfo tree Inherits product.product_supplierinfo_tree_view
view_partner_form partner.factory.calendar.form res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • delay_calendar_type Selection
    readonly=True related='partner_id.delay_calendar_type'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • delay_calendar_type Selection
    default='natural' required=True args: [('natural', 'Natural days'), ('supplier_calendar', 'Supplier Calendar')]
  • factory_calendar_id Many2one → resource.calendar
    comodel_name='resource.calendar'
Public methods (1)
  • supplier_plan_days(self, date_from, delta)
    Helper method to calculate supplier delay based on its working days (if set). :param datetime date_from: reference date. :param integer delta: delay established. :return: datetime: resulting date.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…