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] account_analytic_distribution_manual: Migration to 17.0 #700

Open
wants to merge 18 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
690ae9b
[ADD] account_analytic_distribution_manual: New module to easily auto…
carlos-lopez-tecnativa Jul 25, 2024
6e41782
Added translation using Weblate (Italian)
mymage Jul 31, 2024
406a515
Translated using Weblate (Spanish)
carolinafernandez-tecnativa Aug 2, 2024
958cf0b
[IMP] account_analytic_distribution_manual: Enhanced control of analy…
carlos-lopez-tecnativa Aug 7, 2024
0081e2d
[IMP] account_analytic_distribution_manual: post_init_hook to convert…
carlos-lopez-tecnativa Aug 7, 2024
d9876b6
Translated using Weblate (Italian)
mymage Aug 12, 2024
83659dd
[IMP] account_analytic_distribution_manual: change field type from in…
carlos-lopez-tecnativa Aug 14, 2024
b461d1f
Translated using Weblate (Italian)
mymage Aug 16, 2024
f401c2c
[IMP] account_analytic_distribution_manual: add field manual_distribu…
carlos-lopez-tecnativa Aug 27, 2024
22601f6
Translated using Weblate (Italian)
mymage Aug 29, 2024
3387bc7
[IMP] account_analytic_distribution_manual: Add extra json field for …
victoralmau Aug 28, 2024
6b67d38
Translated using Weblate (Italian)
mymage Sep 6, 2024
aff037a
[IMP] account_analytic_distribution_manual: Add manual_distribution_i…
victoralmau Sep 9, 2024
01fe976
Translated using Weblate (Spanish)
victoralmau Sep 10, 2024
2b1bd2b
Translated using Weblate (Italian)
mymage Sep 11, 2024
67414c6
[IMP] account_analytic_distribution_manual: Add extra json field for …
victoralmau Sep 23, 2024
ade5321
[IMP] account_analytic_distribution_manual: pre-commit auto fixes
BernatObrador Oct 9, 2024
60f773d
[MIG] account_analytic_distribution_manual: Migration to 17.0
BernatObrador Oct 10, 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
106 changes: 106 additions & 0 deletions account_analytic_distribution_manual/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
====================================
Account analytic distribution manual
====================================

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

.. |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/account_analytic_distribution_manual
: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-account_analytic_distribution_manual
: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 provides an easy way to quickly autocomplete analytic
accounts on any model that has a field for analytic accounts.

**Table of contents**

.. contents::
:local:

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

1. Go to Invoicing > Configuration > Analytic Accounting > Manual
Analytic Distributions
2. Create or edit the necessary records.

Usage
=====

1. Go to Invoicing > Customer > Invoices
2. Open or create a invoice
3. On the invoice line, select the analytic account. A new field labeled
"Manual Distribution" should appear at the top.
4. Select a record from the list, and it will be added to the
distribution and the invoice lines.

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

Compatibility with Analytic Distribution Models to use Manual
Distribution as Default values

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:%20account_analytic_distribution_manual%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
-------

* Tecnativa

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

- Tecnativa (https://www.tecnativa.com):

- Carlos Lopez

- APSL - Nagarro <https://apsl.tech>

- Bernat Obrador

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/account_analytic_distribution_manual>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_analytic_distribution_manual/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2024 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import reports
27 changes: 27 additions & 0 deletions account_analytic_distribution_manual/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2024 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Account analytic distribution manual",
"summary": "Account analytic distribution manual",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-analytic",
"author": "Tecnativa, Odoo Community Association (OCA)",
"depends": ["account"],
"data": [
"security/analytic_security.xml",
"security/ir.model.access.csv",
"views/account_analytic_distribution_manual_views.xml",
"views/account_analytic_line_views.xml",
],
"assets": {
"web.assets_backend": [
"account_analytic_distribution_manual/static/src/components/**/*",
],
"web.assets_tests": [
"account_analytic_distribution_manual/static/src/tests/tours/**/*",
],
},
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_distribution_manual
#
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: account_analytic_distribution_manual
#. odoo-python
#: code:addons/account_analytic_distribution_manual/models/account_analytic_distribution_manual.py:0
#, python-format
msgid "%s (Copy)"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_account_analytic_distribution_manual
msgid "Account analytic distribution manual"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__active
msgid "Active"
msgstr ""

#. module: account_analytic_distribution_manual
#: model_terms:ir.actions.act_window,help:account_analytic_distribution_manual.action_account_analytic_distribution_manual
msgid "Add a new Manual Analytic Distributions"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__analytic_distribution
msgid "Analytic"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__analytic_distribution_search
msgid "Analytic Distribution Search"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_account_analytic_line
msgid "Analytic Line"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_analytic_mixin
msgid "Analytic Mixin"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__analytic_precision
msgid "Analytic Precision"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_model__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_move_line__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_reconcile_model_line__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_analytic_mixin__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_hr_expense__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_hr_expense_split__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_purchase_order_line__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_sale_order_line__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_move__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_move_line__analytic_distribution_import
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_scrap__analytic_distribution_import
msgid "Analytic distribution (importable)"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_line__manual_distribution_id
msgid "Analytic distribution manual"
msgstr ""

#. module: account_analytic_distribution_manual
#: model_terms:ir.ui.view,arch_db:account_analytic_distribution_manual.view_account_analytic_distribution_manual_form
#: model_terms:ir.ui.view,arch_db:account_analytic_distribution_manual.view_account_analytic_distribution_manual_search
msgid "Archived"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_base
msgid "Base"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__company_id
msgid "Company"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__create_uid
msgid "Created by"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__create_date
msgid "Created on"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_account_analytic_distribution_manual__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_account_analytic_distribution_model__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_account_move_line__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_account_reconcile_model_line__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_analytic_mixin__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_hr_expense__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_hr_expense_split__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_purchase_order_line__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_sale_order_line__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_stock_move__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_stock_move_line__analytic_distribution_import
#: model:ir.model.fields,help:account_analytic_distribution_manual.field_stock_scrap__analytic_distribution_import
msgid ""
"Defining this field, it will set the analytical distribution in JSON format,"
" but using the analytic accounts names as keys of the dictionary, so it "
"eases the human input."
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__display_name
msgid "Display Name"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__id
msgid "ID"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_account_invoice_report
msgid "Invoices Statistics"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model,name:account_analytic_distribution_manual.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_analytic_distribution_manual
#. odoo-javascript
#: code:addons/account_analytic_distribution_manual/static/src/components/analytic_distribution/analytic_distribution.esm.js:0
#, python-format
msgid "Loading..."
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.actions.act_window,name:account_analytic_distribution_manual.action_account_analytic_distribution_manual
#: model:ir.ui.menu,name:account_analytic_distribution_manual.account_analytic_distribution_manual_menu
msgid "Manual Analytic Distributions"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_model__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_invoice_report__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_move_line__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_reconcile_model_line__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_analytic_mixin__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_hr_expense__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_hr_expense_split__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_purchase_order_line__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_sale_order_line__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_move__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_move_line__manual_distribution_id
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_stock_scrap__manual_distribution_id
msgid "Manual Distribution"
msgstr ""

#. module: account_analytic_distribution_manual
#. odoo-javascript
#: code:addons/account_analytic_distribution_manual/static/src/components/analytic_distribution/analytic_distribution.xml:0
#, python-format
msgid "Manual distribution"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.fields,field_description:account_analytic_distribution_manual.field_account_analytic_distribution_manual__name
msgid "Name"
msgstr ""

#. module: account_analytic_distribution_manual
#: model_terms:ir.ui.view,arch_db:account_analytic_distribution_manual.view_account_analytic_distribution_manual_form
msgid "Name..."
msgstr ""

#. module: account_analytic_distribution_manual
#. odoo-javascript
#: code:addons/account_analytic_distribution_manual/static/src/components/analytic_distribution/analytic_distribution.esm.js:0
#, python-format
msgid "No Analytic Distribution Manual found"
msgstr ""

#. module: account_analytic_distribution_manual
#: model:ir.model.constraint,message:account_analytic_distribution_manual.constraint_account_analytic_distribution_manual_unique_name_by_company
msgid "The name must be unique per Company!"
msgstr ""
Loading
Loading