Repository
OCA/operating-unit · module folder · Try on Runboat
Module version
1.0.0
Category
Sales Management
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/operating-unit
Last tracking update
2026-08-07 07:31:57
Authors
Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Open Source Integrators
Maintainers
Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Open Source Integrators
Committers
Weblate, OCA Transbot, OCA-git-bot, oca-travis, Murtuza Saleh
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
extend_view_order_form sale.order.form sale.order form Inherits sale.view_order_form
view_res_company_form res.company.form res.company form Inherits base.view_company_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (1)
  • onchange_date_deadline(self)
    @api.onchange('date_deadline')

New fields (1)
  • lead_description_template Text
    default=_get_default_lead_description_template help='Template used to provide the information for an operating unit to quote another.' required=True string='Lead Description Template'
Public methods (0)

No public methods.

New fields (1)
  • quote_ids One2many → sale.order.quote
    string='Internal Quotes' args: 'sale.order.quote', 'sale_id'
Public methods (1)
  • create(self, vals)
    @api.model

New fields (9)
  • assigned_to Many2one → res.users
    related='lead_id.user_id' args: 'res.users'
  • expected_date Date
    string='Expected Date'
  • lead_id Many2one → crm.lead
    comodel_name='crm.lead' readonly=True string='Lead'
  • line_ids One2many → sale.order.quote.line
    string='Products' args: 'sale.order.quote.line', 'quote_id'
  • name Char
    string='Name'
  • notes Text
    args: 'Notes'
  • operating_unit_id Many2one → operating.unit
    comodel_name='operating.unit' required=True string='Operating Unit'
  • sale_id Many2one → sale.order
    comodel_name='sale.order' string='Sale'
  • state Selection
    copy=False default='new' string='State' track_visibility='onchange' args: [('new', 'New'), ('sent', 'Sent'), ('received', 'Received')]
Public methods (6)
  • action_send(self)
  • generate_crm_lead(self)
  • generate_lead_description(self)
  • generate_lead_description(self)
  • prepare_crm_lead_values(self)
  • write(self, vals)
    @api.multi

New fields (7)
  • name Char
    required=True string='Description'
  • price_unit Float
    string='Unit Price'
  • product_id Many2one → product.product
    comodel_name='product.product' string='Product'
  • qty Float
    string='Quantity'
  • quote_id Many2one → sale.order.quote
    comodel_name='sale.order.quote' string='Internal Quote'
  • subtotal Float
    string='Subtotal'
  • uom_id Many2one → uom.uom
    comodel_name='uom.uom' string='Unit of Measure'
Public methods (1)
  • onchange_product_id(self)
    @api.multi@api.onchange('product_id')