Sale with Multiple Operating Unit

sale_multi_operating_unit
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/12.0/sale_multi_operating_unit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd.
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, Weblate, OCA-git-bot, Murtuza Saleh
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - product_operating_unit
    - operating_unit
    - res_partner_operating_unit
    - sale_operating_unit
    - account_operating_unit
    - analytic_operating_unit
    - sales_team_operating_unit
odoo/odoo:
    - crm
    - base_setup
    - base
    - web
    - sales_team
    - mail
    - bus
    - web_tour
    - calendar
    - resource
    - fetchmail
    - utm
    - contacts
    - digest
    - portal
    - http_routing
    - product
    - decimal_precision
    - uom
    - sale
    - payment
    - account
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
extend_view_order_form sale.order.form sale.order xpath Inherits sale.view_order_form
view_res_company_form res.company.form res.company xpath Inherits base.view_company_form
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')