Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 15 Odoo series since 6.1

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

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

Description

This module allows you to manage your Purchase Agreements.

Manage calls for tenders and blanket orders. Calls for tenders are used to get competing offers from different vendors and select the best ones. Blanket orders are agreements you have with vendors to benefit from a predetermined pricing.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_requisition_stock

Code analysis

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

Views touched 10

XML IDNameModelTypeStatus
product_supplierinfo_tree_view_inherit product.template.product.form.inherit product.supplierinfo form Inherits product.product_supplierinfo_tree_view
purchase_order_form_inherit purchase.order.form.inherit purchase.order form Inherits purchase.purchase_order_form
purchase_order_search_inherit purchase.order.list.select.inherit purchase.order list Inherits purchase.view_purchase_order_filter
report_purchaserequisition_document report_purchaserequisition_document ir.ui.view qweb New
report_purchaserequisitions report_purchaserequisitions ir.ui.view qweb New
supplier_info_form_inherit product.supplierinfo.requisition.view product.supplierinfo form Inherits product.product_supplierinfo_form_view
view_purchase_requisition_filter purchase.requisition.list.select purchase.requisition search New
view_purchase_requisition_form purchase.requisition.form purchase.requisition form New
view_purchase_requisition_kanban purchase.requisition.kanban purchase.requisition kanban New
view_purchase_requisition_tree purchase.requisition.list purchase.requisition list New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • purchase_requisition_id Many2one → purchase.requisition
    related='purchase_requisition_line_id.requisition_id' string='Agreement' args: 'purchase.requisition'
  • purchase_requisition_line_id Many2one → purchase.requisition.line
    index='btree_not_null' args: 'purchase.requisition.line'
Public methods (0)

No public methods.

New fields (2)
  • requisition_id Many2one → purchase.requisition
    copy=False index='btree_not_null' string='Agreement' args: 'purchase.requisition'
  • requisition_type Selection
    related='requisition_id.requisition_type'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (16)
  • active Boolean
    default=True args: 'Active'
  • company_id Many2one → res.company
    default=<expr> required=True string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    compute='_compute_currency_id' precompute=True readonly=False required=True store=True args: 'res.currency', 'Currency'
  • date_end Date
    string='End Date' tracking=True
  • date_start Date
    string='Start Date' tracking=True
  • description Html
  • line_ids One2many → purchase.requisition.line
    copy=True string='Products to Purchase' args: 'purchase.requisition.line', 'requisition_id'
  • name Char
    copy=False default=<expr> readonly=True required=True string='Agreement'
  • order_count Integer
    compute='_compute_orders_number' string='Number of Orders'
  • product_id Many2one → product.product
    related='line_ids.product_id' string='Product' args: 'product.product'
  • purchase_ids One2many → purchase.order
    string='Purchase Orders' args: 'purchase.order', 'requisition_id'
  • reference Char
    string='Reference'
  • requisition_type Selection
    default='blanket_order' required=True string='Agreement Type' args: [('blanket_order', 'Blanket Order'), ('purchase_template', 'Purchase Template')]
  • state Selection
    copy=False default='draft' required=True selection=[('draft', 'Draft'), ('confirmed', 'Confirmed'), ('done', 'Closed'), ('cancel', 'Cancelled')] string='Status' tracking=True
  • user_id Many2one → res.users
    check_company=True default=<expr> string='Purchase Representative' args: 'res.users'
  • vendor_id Many2one → res.partner
    check_company=True string='Vendor' args: 'res.partner'
Public methods (7)
  • action_cancel(self)
  • action_confirm(self)
  • action_done(self)
    Generate all purchase order based on selected lines, should only be called on one agreement at a time
  • action_draft(self)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)
  • write(self, vals)

New fields (15)
  • company_id Many2one → res.company
    readonly=True related='requisition_id.company_id' store=True string='Company' args: 'res.company'
  • currency_id Many2one → res.currency
    related='requisition_id.currency_id' args: 'res.currency'
  • display_type Selection
    default=False help='Technical field for UX purpose.' args: [('line_section', 'Section'), ('line_subsection', 'Subsection'), ('line_note', 'Note')]
  • name Text
    string='Line Description'
  • parent_id Many2one → purchase.requisition.line
    compute='_compute_parent_id' string='Parent Section Line' args: 'purchase.requisition.line'
  • price_subtotal Monetary
    compute='_compute_price_subtotal' store=True string='Amount'
  • price_unit Float
    compute='_compute_price_unit' default=0.0 min_display_digits='Product Price' readonly=False store=True string='Unit Price'
  • product_description_variants Char
    args: 'Description'
  • product_id Many2one → product.product
    domain=[('purchase_ok', '=', True)] string='Product' args: 'product.product'
  • product_qty Float
    digits='Product Unit' string='Quantity'
  • qty_ordered Float
    compute='_compute_ordered_qty' string='Ordered'
  • requisition_id Many2one → purchase.requisition
    index=True ondelete='cascade' required=True string='Purchase Agreement' args: 'purchase.requisition'
  • sequence Integer
    default=10 string='Sequence'
  • supplier_info_ids One2many → product.supplierinfo
    args: 'product.supplierinfo', 'purchase_requisition_line_id'
  • uom_id Many2one → uom.uom
    compute='_compute_uom_id' precompute=True readonly=False store=True args: 'uom.uom', 'Unit'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • unlink(self)
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…