Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 12 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.63 MB
Module directory on disk
Code analysis 0 migration notes 5 models 10 views 0 HTTP endpoints

Description

Adds a configurable type on the purchase orders. This type can be used in filters and groupbys.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 10

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_config_settings_view_form_purchase res.config.settings form Inherits purchase.res_config_settings_view_form_purchase
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 5

New fields (2)
  • order_type Many2one → purchase.order.type
    comodel_name='purchase.order.type' domain="[('company_id', 'in', [False, company_id])]" ondelete='restrict' string='Type'
  • order_type_required Boolean
    related='company_id.purchase_order_type_required'
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 (9)
  • 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'
  • is_default Boolean
    help='Used as the fallback order type for a purchase order whose vendor does not provide one, and to correct a purchase order whose type no longer suits its company after the company changes.' string='Default'
  • 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_order_type_required Boolean
    help='If enabled, a purchase order can only be saved in the form once it has an order type.' string='Require Purchase Order Type'
Public methods (0)

No public methods.

New fields (1)
  • purchase_order_type_required Boolean
    readonly=False related='company_id.purchase_order_type_required'
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…

Loading…