Recording External Revenue

Manage external revenue of recording.

https://kastor.lab.numigi.net/web/image/product.template/907/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Recording External Revenue

This module allows to import revenues from external music platforms such as Apple Music, Sound Exchange or Spotify.

Overview

Raw Data

The module defines a new model recording.external.revenue.raw.

static/description/raw_data_list.png

This model is used to easily upload revenues into Odoo (as csv or xls files). It is designed to limit manipulations of data outside of Odoo.

It contains mostly dates, strings and numeric fields. It has only one many2one field (company_id) used for multi-company support.

Revenues

The module defines another model recording.external.revenue.

static/description/revenue_list.png

After raw data entries are imported in Odoo, they can be converted into (real) revenues.

Basic string fields of raw revenues are mapped into many2one values.

Conversion

The conversion of raw entries into revenues is done by clicking on Convert Revenues.

static/description/convert_raw_revenues_button.png

Queue Jobs

The conversion is done using queue jobs.

One job is created per revenue.

static/description/queue_job_list.png

If a job fails, the error message will be logged inside the job.

static/description/queue_job_fail_message.png

Above, the problem is a missing tax mapping entry for the label TPS.

Converted Revenues

After the jobs have succeeded, the revenues will appear under Recording / External Revenues / Revenues.

static/description/revenue_list_after_conversion.png

Note that in our example, for 3 lines of raw data, 2 lines of revenues were created.

The reason is that the system attempts to group the raw data entries together.

Inside the form view of a revenue, a smart button allows to display the raw data lines related to this revenue.

static/description/revenue_raw_data_smart_button.png static/description/revenue_related_raw_data_lines.png

Mapping

Here is the detail of how the raw data are converted into revenues.

Mapping Tables

The module defines mapping tables for fields converted with a simple key -> value logic.

These fields include:

  • Country
  • Country States / Provinces
  • Currencies
  • Partner
  • Recording Platforms
  • Recording Subplatforms
  • Taxes

The mapping tables for each field can be found under the Mapping menu.

static/description/mapping_menu.png

Below is the mapping table for countries.

static/description/country_mapping.png

If a raw data entry contains the string CA in its Country field, the country of the converted revenue would be Canada.

static/description/raw_revenue_ca.png static/description/converted_revenue_canada.png

Mapping of Products

Products are mapped using a more specialized logic.

static/description/raw_revenue_product_references.png
  1. If the product reference is filled, it will be used to find a product with a matching internal reference (default_code).

    static/description/product_default_code.png
  2. Otherwise, if the external catalog reference is filled, it will be used to find the product.

    static/description/product_catalog_reference.png
  3. Otherwise, the type of revenue will be used to find a matching product.

    static/description/revenue_type_mapping.png static/description/revenue_type_mapping_streaming.png

Mapping of Recordings

Recordings are also mapped using a specialized logic.

  1. If the product mapped at the previous section is related to a record, this record will be used.

    static/description/product_recording_relation.png
  2. Otherwise, if the ISRC is given, it will be used to identify the record.

  3. Otherwise, if the UPC code is given, it will be used.

  4. Otherwise, if the external catalog reference is given, it will be used.

    static/description/raw_revenue_recording_references.png static/description/recording_references.png

Since version 1.0.1, amount fields on gross income allows 5 decimal, on the other hand, the converted income remains on 2 decimal places.

Contributors