Connector Equipment Import CDR

connector_equipment_import_cdr
REPOSITORY
REPOSITORYOCA/vertical-isp
GIT
GIThttps://github.com/OCA/vertical-isp.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/vertical-isp/tree/12.0/connector_equipment_import_cdr
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSDaniel Reis, oca-travis, OCA-git-bot, Murtuza Saleh
WEBSITE
WEBSITEhttps://github.com/OCA/vertical-isp
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:26
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/contract:
    - agreement_legal_sale
    - agreement_legal
    - agreement
    - agreement_sale
    - agreement_account
    - agreement_serviceprofile
    - agreement_maintenance
OCA/sale-workflow:
    - sale_commercial_partner
OCA/vertical-isp:
    - base_phone_rate
    - connector_equipment
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
    - sale_timesheet
    - sale_management
    - sale
    - sales_team
    - payment
    - hr_timesheet
    - hr
    - resource
    - project
    - rating
    - contacts
    - maintenance
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
agreement_service_profile_inherited_view agreement.service.profile.inherited.view agreement.serviceprofile xpath Inherits agreement_serviceprofile.agreement_serviceprofile_form
backend_equipment_inherited_view backend.equipment.inherited.view backend.equipment xpath Inherits connector_equipment.backend_equipment_form_view
backend_equipment_product_line_form_view backend.equipment.product_line.form.view backend.equipment.product_line form New
backend_equipment_product_line_tree_view backend.equipment.product_line.tree.view backend.equipment.product_line tree New
Models touched (3)

New fields (3)
  • last_cdr_sync Datetime
    copy=False args: 'Last CDR Sync Date'
  • query_parameter Char
  • query_type Selection
    args: [('domain', 'Query by Domain'), ('uid', 'Query by User')]
Public methods (3)
  • button_import_cdr(self)
    @api.multi
  • cron_import_cdr(self)
    @api.model
  • import_cdr(self)
    @api.multi
    Get call data records: type (in, out, ...), number, seconds Filter only outbound calls, type==0 Add billing Product, from number, using product map And Group by Product

New fields (2)
  • product_line_ids One2many → backend.equipment.product_line
    string='Products' args: 'backend.equipment.product_line', 'backend_id'
  • sync_schedule Selection
    args: [('all_service', 'All Service Profiles Every Day')], 'Sync Schedule'
Public methods (3)
  • api_generate_access_token(self)
    @api.multi
    Login to Netsapiens and return the access token
  • api_get_cdr_data(self, service, from_date, to_date)
    @api.model
    Given a Service Profile, call the API to get CRD data. Returns a dict with the retrieved data.
  • api_url_build(self, endpoint)
    @api.multi
    Given an endpoint, return full Netsapiens API URL for the endpoint

New fields (4)
  • backend_id Many2one → backend.equipment
    args: 'backend.equipment', 'Backend'
  • name Many2one → product.product
    args: 'product.product', 'Product'
  • pattern Char
    help='The pattern is a regular expression that will applied on the phone number to detect a domestic call, an international call or a toll free call.' args: 'Pattern'
  • sequence Integer
    args: 'Sequence'
Public methods (0)

No public methods.