Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions analytic_brand/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
==============
Analytic Brand
==============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:85b3dd863725994f23afdb05c4cd559cef210852d86267072ba5299141a78d6a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fbrand-lightgray.png?logo=github
:target: https://github.com/OCA/brand/tree/16.0/analytic_brand
:alt: OCA/brand
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/brand-16-0/brand-16-0-analytic_brand
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/brand&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon associate an analytic distribution to a brand that will be
used as a default value where the brand is used if the analytic
accounting is activated.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/brand/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/brand/issues/new?body=module:%20analytic_brand%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* ACSONE SA/NV

Contributors
~~~~~~~~~~~~

* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
* Ammar Officewala <aofficewala@opensourceintegrators.com>
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

* Bhavesh Heliconia

* Marie Lejeune <marie.lejeune@acsone.eu/>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-sbejaoui| image:: https://github.com/sbejaoui.png?size=40px
:target: https://github.com/sbejaoui
:alt: sbejaoui

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-sbejaoui|

This module is part of the `OCA/brand <https://github.com/OCA/brand/tree/16.0/analytic_brand>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions analytic_brand/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions analytic_brand/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Analytic Brand",
"summary": """
This addon associate an analytic distribution to a brand that will be
used as a default value where the brand is used if the analytic
accounting is activated""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/brand",
"depends": ["analytic", "brand", "account_brand"],
"data": ["views/res_brand.xml"],
"demo": [],
"maintainers": ["sbejaoui"],
"external_dependencies": {
"python": ["openupgradelib"],
},
}
34 changes: 34 additions & 0 deletions analytic_brand/i18n/analytic_brand.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * analytic_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_distribution
msgid "Analytic Distribution"
msgstr ""

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_precision
msgid "Analytic Precision"
msgstr ""

#. module: analytic_brand
#: model:ir.model,name:analytic_brand.model_res_brand
msgid "Brand"
msgstr ""

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__distribution_analytic_account_ids
msgid "Distribution Analytic Account"
msgstr ""
40 changes: 40 additions & 0 deletions analytic_brand/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * analytic_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-08-07 15:25+0000\n"
"Last-Translator: Miquel Romera <mromera@pmsastro.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_distribution
msgid "Analytic Distribution"
msgstr "Distribución analítica"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_precision
msgid "Analytic Precision"
msgstr "Precisión analítica"

#. module: analytic_brand
#: model:ir.model,name:analytic_brand.model_res_brand
msgid "Brand"
msgstr "Marca"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__distribution_analytic_account_ids
msgid "Distribution Analytic Account"
msgstr "Cuenta analítica de distribución"

#~ msgid "Analytic Account"
#~ msgstr "Cuenta Analítica"
40 changes: 40 additions & 0 deletions analytic_brand/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * analytic_brand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-07-30 09:46+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.10.4\n"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_distribution
msgid "Analytic Distribution"
msgstr "Distribuzione analitica"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__analytic_precision
msgid "Analytic Precision"
msgstr "Precisione analitica"

#. module: analytic_brand
#: model:ir.model,name:analytic_brand.model_res_brand
msgid "Brand"
msgstr "Marca"

#. module: analytic_brand
#: model:ir.model.fields,field_description:analytic_brand.field_res_brand__distribution_analytic_account_ids
msgid "Distribution Analytic Account"
msgstr "Conto distribuzione analitica"

#~ msgid "Analytic Account"
#~ msgstr "Conto analitico"
26 changes: 26 additions & 0 deletions analytic_brand/migrations/16.0.1.0.0/pre-migrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2025 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging

from openupgradelib import openupgrade

_logger = logging.getLogger(__name__)


@openupgrade.migrate()
def migrate(env, version):
openupgrade.logged_query(
env.cr,
"""
ALTER TABLE res_brand
ADD analytic_distribution jsonb;
""",
)
openupgrade.logged_query(
env.cr,
"""
UPDATE res_brand
SET analytic_distribution = jsonb_build_object(analytic_account_id, 100.0)
WHERE analytic_account_id IS NOT NULL;
""",
)
1 change: 1 addition & 0 deletions analytic_brand/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import res_brand
9 changes: 9 additions & 0 deletions analytic_brand/models/res_brand.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class ResBrand(models.Model):
_name = "res.brand"
_inherit = ["analytic.mixin", "res.brand"]
3 changes: 3 additions & 0 deletions analytic_brand/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions analytic_brand/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
* Ammar Officewala <aofficewala@opensourceintegrators.com>
* `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

* Bhavesh Heliconia

* Marie Lejeune <marie.lejeune@acsone.eu/>
3 changes: 3 additions & 0 deletions analytic_brand/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This addon associate an analytic distribution to a brand that will be
used as a default value where the brand is used if the analytic
accounting is activated.
6 changes: 6 additions & 0 deletions analytic_brand/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=["setuptools-odoo"],
odoo_addon=True,
)
Binary file added analytic_brand/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading