Skip to content

Commit

Permalink
Merge pull request #36 from OCA/16.0
Browse files Browse the repository at this point in the history
16.0 update
  • Loading branch information
kenluzuriaga0 authored Jan 2, 2025
2 parents d04f371 + 7be234a commit 12e4335
Show file tree
Hide file tree
Showing 569 changed files with 24,839 additions and 460 deletions.
8 changes: 6 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.17.2
_commit: v1.21.1
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
convert_readme_fragments_to_markdown: false
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
Expand All @@ -14,9 +15,12 @@ odoo_test_flavor: Both
odoo_version: 16.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
rebel_module_groups: []
rebel_module_groups:
- purchase_stock_analytic, stock_analytic
repo_description: 'TODO: add repo description.'
repo_name: account-analytic
repo_slug: account-analytic
repo_website: https://github.com/OCA/account-analytic
use_pyproject_toml: false
use_ruff: false

4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Stale PRs and issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# General settings.
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# * Issues that are pending more information
# * Except Issues marked as "no stale"
- name: Needs more information stale issues policy
uses: actions/stale@v4
uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ascending: true
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
include: "purchase_stock_analytic, stock_analytic"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
include: "purchase_stock_analytic, stock_analytic"
name: test with OCB
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
exclude: "purchase_stock_analytic, stock_analytic"
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
exclude: "purchase_stock_analytic, stock_analytic"
name: test with OCB
makepot: "true"
services:
Expand All @@ -49,6 +59,9 @@ jobs:
POSTGRES_DB: odoo
ports:
- 5432:5432
env:
INCLUDE: "${{ matrix.include }}"
EXCLUDE: "${{ matrix.exclude }}"
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -63,7 +76,9 @@ jobs:
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
/.venv
/.pytest_cache
/.ruff_cache

# C extensions
*.so
Expand Down
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ exclude: |
^docs/_templates/.*\.html$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# Ignore build and dist directories in addons
/build/|/dist/|
# Ignore test files in addons
/tests/samples/.*|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
Expand All @@ -35,7 +39,7 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: 969238e47c07d0c40573acff81d170f63245d738
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand All @@ -48,6 +52,7 @@ repos:
- --org-name=OCA
- --repo-name=account-analytic
- --if-source-changed
- --keep-source-digest
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
Expand Down
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,34 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[account_analytic_account_tag](account_analytic_account_tag/) | 16.0.1.0.0 | | Restore the tag_ids in account.analytic.account
[account_analytic_required](account_analytic_required/) | 16.0.1.0.0 | | Account Analytic Required
[account_analytic_tag](account_analytic_tag/) | 16.0.1.0.0 | | Account Analytic Tag
[account_analytic_tag_distribution](account_analytic_tag_distribution/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Account Analytic Tag Distribution
[account_move_update_analytic](account_move_update_analytic/) | 16.0.1.0.1 | | This module allows the user to update analytic on posted moves
[account_analytic_distribution_manual](account_analytic_distribution_manual/) | 16.0.2.4.0 | | Account analytic distribution manual
[account_analytic_document_date](account_analytic_document_date/) | 16.0.1.0.0 | [![mpascual, BernatObrador](https://github.com/mpascual, BernatObrador.png?size=30px)](https://github.com/mpascual, BernatObrador) | Account Analytic Document Date
[account_analytic_organization](account_analytic_organization/) | 16.0.1.0.0 | | Adds organization field on the partner so you can use it on your analytic
[account_analytic_parent](account_analytic_parent/) | 16.0.1.0.1 | | This module reintroduces the hierarchy to the analytic accounts.
[account_analytic_required](account_analytic_required/) | 16.0.2.0.1 | | Account Analytic Required
[account_analytic_root](account_analytic_root/) | 16.0.1.0.0 | [![victor-champonnois](https://github.com/victor-champonnois.png?size=30px)](https://github.com/victor-champonnois) | Compute the Root Analytic Account
[account_analytic_sequence](account_analytic_sequence/) | 16.0.1.0.0 | | Restore the analytic account sequence
[account_analytic_tag](account_analytic_tag/) | 16.0.1.1.1 | | Account Analytic Tag
[account_analytic_tag_distribution](account_analytic_tag_distribution/) | 16.0.1.0.1 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Account Analytic Tag Distribution
[account_move_update_analytic](account_move_update_analytic/) | 16.0.1.0.2 | [![remi-filament](https://github.com/remi-filament.png?size=30px)](https://github.com/remi-filament) [![Shide](https://github.com/Shide.png?size=30px)](https://github.com/Shide) | This module allows the user to update analytic on posted moves
[analytic_base_department](analytic_base_department/) | 16.0.1.0.0 | | Add relationship between Analytic and Department
[analytic_distribution_widget_remove_save](analytic_distribution_widget_remove_save/) | 16.0.1.0.1 | | Remove save button on analytic distribution widget
[hr_expense_analytic_tag](hr_expense_analytic_tag/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Hr Expense Analytic Tag
[analytic_partner](analytic_partner/) | 16.0.1.0.0 | | Search and group analytic entries by partner
[hr_department_analytic](hr_department_analytic/) | 16.0.1.0.0 | | This module allows to specify analytic account on hr department
[hr_expense_analytic_tag](hr_expense_analytic_tag/) | 16.0.1.0.1 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Hr Expense Analytic Tag
[hr_timesheet_analytic_tag](hr_timesheet_analytic_tag/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Hr Timesheet Analytic Tag
[mrp_stock_analytic](mrp_stock_analytic/) | 16.0.1.0.0 | | MRP Stock Analytic
[pos_analytic_by_config](pos_analytic_by_config/) | 16.0.1.0.0 | | Use analytic account defined on POS configuration for POS orders
[product_analytic](product_analytic/) | 16.0.1.0.1 | | Add analytic account on products and product categories
[product_analytic_purchase](product_analytic_purchase/) | 16.0.1.0.0 | | Glue module between purchase and product_analytic
[product_analytic_sale](product_analytic_sale/) | 16.0.1.0.0 | [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Glue module between sale and product_analytic
[purchase_analytic](purchase_analytic/) | 16.0.2.1.0 | | Purchase Analytic
[purchase_stock_analytic](purchase_stock_analytic/) | 16.0.1.0.0 | | Copies the analytic distribution of the purchase order item to the stock move
[purchase_analytic_tag](purchase_analytic_tag/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Purchase Analytic Tag
[purchase_stock_analytic](purchase_stock_analytic/) | 16.0.1.0.1 | | Copies the analytic distribution of the purchase order item to the stock move
[sale_analytic_tag](sale_analytic_tag/) | 16.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Sale Analytic Tag
[stock_analytic](stock_analytic/) | 16.0.1.2.0 | | Adds analytic distribution in stock move
[stock_picking_analytic](stock_picking_analytic/) | 16.0.1.0.0 | | Allows to define the analytic account on picking level
[stock_analytic](stock_analytic/) | 16.0.1.3.0 | | Adds analytic distribution in stock move
[stock_landed_costs_analytic](stock_landed_costs_analytic/) | 16.0.1.0.0 | | This module adds an analytic account and analytic tags on landed costs lines so that on landed costs validation account moves get analytic account and analytic tags values from landed costs lines.
[stock_picking_analytic](stock_picking_analytic/) | 16.0.1.0.1 | | Allows to define the analytic account on picking level

[//]: # (end addons)

Expand Down
27 changes: 27 additions & 0 deletions account_analytic_account_tag/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_analytic_account_tag
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-02-22 13:34+0000\n"
"Last-Translator: mymage <[email protected]>\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 4.17\n"

#. module: account_analytic_account_tag
#: model:ir.model,name:account_analytic_account_tag.model_account_analytic_account
msgid "Analytic Account"
msgstr "Conto analitico"

#. module: account_analytic_account_tag
#: model:ir.model.fields,field_description:account_analytic_account_tag.field_account_analytic_account__tag_ids
msgid "Tags"
msgstr "Etichette"
98 changes: 98 additions & 0 deletions account_analytic_distribution_manual/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
====================================
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/16.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-16-0/account-analytic-16-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=16.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
=============

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


Usage
=====

#. Go to Invoicing > Customer > Invoices
#. Open or create a invoice
#. On the invoice line, select the analytic account. A new field labeled "Manual Distribution" should appear at the top.
#. 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:%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
~~~~~~~

* Tecnativa

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

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

* Carlos Lopez

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions account_analytic_distribution_manual/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2024 Tecnativa - Carlos Lopez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from . import reports
from .hooks import post_init_hook
28 changes: 28 additions & 0 deletions account_analytic_distribution_manual/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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": "16.0.2.4.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,
"post_init_hook": "post_init_hook",
}
Loading

0 comments on commit 12e4335

Please sign in to comment.