Default Sales Team on Invoice

account_invoice_default_salesteam
REPOSITORY
REPOSITORYOCA/account-invoicing
GIT
GIThttps://github.com/OCA/account-invoicing.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-invoicing/tree/7.0/account_invoice_default_salesteam
VERSION
VERSION 1.1
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORSOdoo Community Association (OCA), Savoir-faire Linux
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Savoir-faire Linux
COMMITTERS
COMMITTERSAlexandre Fayolle, Stéphane Bidoul (ACSONE), OCA Transbot, Vincent Vinet
WEBSITE
WEBSITEhttp://www.savoirfairelinux.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale_crm
    - sale
    - account_voucher
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
    - crm
    - base_action_rule
    - base_status
    - base_calendar
    - resource
    - fetchmail
    - stock
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module set the Sales Team (section_id field) in the 2 following scenarios:

* when creating an invoice, set on partner_id.onchange() from the partner's
  Sales Team
* when invoicing from sales_order, set from the Sales Order's Sales Team.

Code Analysis

Views touched (0)

No views found for this module.

Models touched (3)

New fields (0)

No new fields.

Public methods (2)
  • create(self, cr, uid, values, context=None)
  • onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False, context=None)

New fields (0)

No new fields.

Public methods (1)
  • onchange_partner_id(self, cr, uid, ids, part, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.