Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.2
Category
Purchase Management
Folder size
0.43 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-13 11:29:18
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
David Vidal, Weblate, OCA-git-bot, oca-ci, mav-adhoc, Hudson5577, les-adhoc
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Adds a configurable *type* on the purchase orders. This type can be used
in filters and groupbys.

Code Analysis

Views touched (9)
XML IDNameModelTypeStatus
purchase_order_form purchase.order form Inherits purchase.purchase_order_form
purchase_order_kpis_tree purchase.order tree Inherits purchase.purchase_order_kpis_tree
purchase_order_tree purchase.order tree Inherits purchase.purchase_order_tree
purchase_order_view_search purchase.order search Inherits purchase.purchase_order_view_search
res_partner_purchase_type_form_view res.partner.purchase_type.form res.partner form Inherits base.view_partner_form
view_purchase_order_filter purchase.order Inherits purchase.view_purchase_order_filter
view_purchase_order_type_form purchase.order.type form New
view_purchase_order_type_search purchase.order.type.search purchase.order.type search New
view_purchase_order_type_tree purchase.order.type list New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • order_type Many2one → purchase.order.type
    comodel_name='purchase.order.type' compute='_compute_partner_order_type' domain="[('company_id', 'in', [False, company_id])]" ondelete='restrict' readonly=False store=True string='Type'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_order_type(self)
    @api.onchange('order_type')
  • onchange_partner_id(self)
    @api.onchange('partner_id')

New fields (8)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr>
  • description Text
    translate=True
  • incoterm_id Many2one → account.incoterms
    comodel_name='account.incoterms'
  • name Char
    required=True
  • payment_term_id Many2one → account.payment.term
    comodel_name='account.payment.term' string='Payment Terms'
  • sequence Integer
    default=10
  • sequence_id Many2one → ir.sequence
    comodel_name='ir.sequence' copy=False default=<expr> domain=<expr> required=True string='Entry Sequence'
Public methods (0)

No public methods.

New fields (1)
  • purchase_type Many2one → purchase.order.type
    comodel_name='purchase.order.type' string='Purchase Order Type'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…