Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] pos_analytic_by_config: Migration to 17.0 #652

Merged
merged 26 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6e39c2d
Rename pos_analytic_config to pos_analytic_by_config
adrienpeiffer Dec 3, 2015
6975e4b
OCA Transbot updated translations from Transifex
oca-transbot Aug 5, 2016
a667f5e
[MIG][10.0] pos_analytic_by_config
May 8, 2017
774d467
[MIG] pos_analytic_by_config: Migration to 12.0
chienandalu Aug 17, 2020
7096d5c
[FIX] pos_analytic_by_config tests
chienandalu Jan 12, 2021
c9036ac
[IMP] pos_analytic_by_config: black, isort, prettier
chienandalu Apr 5, 2021
581961e
[MIG] pos_analytic_by_config: Migration to 13.0
chienandalu Apr 5, 2021
6a06bb8
[14.0][MIG] pos_analytic_by_config
xavier-bouquiaux May 27, 2021
053277b
Translated using Weblate (Catalan)
Noel000 Mar 21, 2022
2960264
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 31, 2022
bebc31a
Added translation using Weblate (Arabic)
RachidAlassir Feb 14, 2023
0ae812a
Translated using Weblate (Arabic)
RachidAlassir Feb 14, 2023
7f0c208
[MIG] pos_analytic_by_config: Migration to 15.0
Ricardoalso May 22, 2023
9e73a00
Translated using Weblate (Spanish)
Ivorra78 Jul 28, 2023
11124f3
[15.0][FIX] pos_analytic_by_config: update signature of _get_sale_vals
Ricardoalso Aug 9, 2023
4c97210
Translated using Weblate (Spanish)
Ivorra78 Oct 23, 2023
1179d03
[BOT] post-merge updates
OCA-git-bot Nov 20, 2023
223c832
[MIG] pos_analytic_by_config: Migration to 16.0
chienandalu Nov 21, 2023
ba89857
[UPD] Update pos_analytic_by_config.pot
Mar 1, 2024
c3c999f
Update translation files
weblate Mar 1, 2024
c935643
Update translation files
weblate Mar 1, 2024
d01745c
Added translation using Weblate (Italian)
mymage Mar 4, 2024
ef5164f
Translated using Weblate (Italian)
mymage Mar 4, 2024
30a73a6
Translated using Weblate (Spanish)
Ivorra78 Mar 17, 2024
65a69ef
[IMP] pos_analytic_by_config: pre-commit auto fixes
peluko00 Apr 30, 2024
940db2c
[MIG] pos_analytic_by_config: Migration to 17.0
peluko00 Apr 30, 2024
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
117 changes: 117 additions & 0 deletions pos_analytic_by_config/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
===================
POS Analytic Config
===================

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

.. |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%2Faccount--analytic-lightgray.png?logo=github
:target: https://github.com/OCA/account-analytic/tree/17.0/pos_analytic_by_config
:alt: OCA/account-analytic
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-analytic-17-0/account-analytic-17-0-pos_analytic_by_config
: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/account-analytic&target_branch=17.0
:alt: Try me on Runboat

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

This module allows to generate analytic distributions from the PoS
orders.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure the analytic distributions by store:

1. Go to *Invoicing > Configuration > Analytic Distribution Models*
2. We'll create one for every pos config.
3. Select an account prefix (Normally your incoming account prefix)
4. Select a PoS config (unhide it from the optionl fields).
5. Choose your desired distribution for that store.

Usage
=====

When you reconcile your sessions, the analytic distribution should go as
expected for your point of sale.

Known issues / Roadmap
======================

- Add ``account_analytic_id`` in ``pos.order`` so we can use it in
reports.
- In ``13.0`` the session reconciliation has been refactored and thus
the journal items are now very simplified. There's no product detail
now, so we won't be able to analyze that level of detail anymore. For
invoices it remains as it was.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-analytic/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/account-analytic/issues/new?body=module:%20pos_analytic_by_config%0Aversion:%2017.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
* Tecnativa

Contributors
------------

- `ACSONE SA/NV <https://www.acsone.eu>`__

- Adrien Peiffer <[email protected]>
- Cédric Pigeon <[email protected]>
- Xavier Bouquiaux <[email protected]>

- `Tecnativa <https://www.tecnativa.com>`__

- David Vidal

- `APSL-Nagarro <https://www.apsl.tech>`__

- Antoni Marroig <[email protected]>

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.

This module is part of the `OCA/account-analytic <https://github.com/OCA/account-analytic/tree/17.0/pos_analytic_by_config>`_ 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 pos_analytic_by_config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions pos_analytic_by_config/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2015 ACSONE SA/NV
# Copyright 2020 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "POS Analytic Config",
"summary": "Use analytic account defined on POS configuration for POS orders",
"author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
"category": "Point Of Sale, Accounting",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"views/account_analytic_distribution_model_views.xml",
],
}
67 changes: 67 additions & 0 deletions pos_analytic_by_config/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_analytic_by_config
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-02-14 17:23+0000\n"
"Last-Translator: Rachid Al Assir <[email protected]>\n"
"Language-Team: none\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 4.14.1\n"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_order
msgid "Point of Sale Orders"
msgstr "أوامر نقطة البيع"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_session
msgid "Point of Sale Session"
msgstr "جلسة نقطة البيع"

#. module: pos_analytic_by_config
#: model:ir.model.fields,field_description:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Pos Config"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,help:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Select a Point of Sale for which the analytic distribution will be used"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "الحساب التحليلي"

#~ msgid "Analytic Account for this config."
#~ msgstr "حساب تحليلي لهذا التكوين."

#~ msgid "Analytic Account that these orders link to"
#~ msgstr "الحساب التحليلي الذي ترتبط به هذه الطلبات"

#~ msgid "Journal Item"
#~ msgstr "عنصر اليومية"

#~ msgid "Point of Sale Configuration"
#~ msgstr "إعدادات نقطة البيع"

#~ msgid "Display Name"
#~ msgstr "الاسم المعروض"

#~ msgid "ID"
#~ msgstr "المُعرف"

#~ msgid "Last Modified on"
#~ msgstr "آخر تعديل في"
60 changes: 60 additions & 0 deletions pos_analytic_by_config/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_analytic_by_config
#
# Translators:
# Carles Antoli <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-13 23:06+0000\n"
"PO-Revision-Date: 2022-03-21 13:17+0000\n"
"Last-Translator: Noel estudillo <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\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 4.3.2\n"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_order
msgid "Point of Sale Orders"
msgstr "Comandes al punt de venda"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,field_description:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Pos Config"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,help:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Select a Point of Sale for which the analytic distribution will be used"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "Compte analític"

#~ msgid "Analytic Account for this config."
#~ msgstr "Compte analític per a aquesta configuració."

#~ msgid "Analytic Account that these orders link to"
#~ msgstr "Compte analític al qual enllacen aquestes comandes"

#~ msgid "Point of Sale Configuration"
#~ msgstr "Configuració del punt de venda"

#~ msgid "Invoice Line"
#~ msgstr "Línia de factura"
47 changes: 47 additions & 0 deletions pos_analytic_by_config/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_analytic_by_config
#
# Translators:
# Rudolf Schnapka <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-20 23:05+0000\n"
"PO-Revision-Date: 2017-01-20 23:05+0000\n"
"Last-Translator: Rudolf Schnapka <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_order
msgid "Point of Sale Orders"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,field_description:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Pos Config"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,help:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Select a Point of Sale for which the analytic distribution will be used"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "Kostenstelle"
48 changes: 48 additions & 0 deletions pos_analytic_by_config/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_analytic_by_config
#
# Translators:
# Kostas Goutoudis <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-30 22:27+0000\n"
"PO-Revision-Date: 2016-09-30 22:27+0000\n"
"Last-Translator: Kostas Goutoudis <[email protected]>, 2016\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\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"

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_account_analytic_distribution_model
msgid "Analytic Distribution Model"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_order
msgid "Point of Sale Orders"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model,name:pos_analytic_by_config.model_pos_session
msgid "Point of Sale Session"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,field_description:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Pos Config"
msgstr ""

#. module: pos_analytic_by_config
#: model:ir.model.fields,help:pos_analytic_by_config.field_account_analytic_distribution_model__pos_config_id
msgid "Select a Point of Sale for which the analytic distribution will be used"
msgstr ""

#~ msgid "Analytic Account"
#~ msgstr "Αναλυτικός Λογαριασμός"
Loading
Loading