From 8363b50507ea99594a39a980357e3d38a7a7975c Mon Sep 17 00:00:00 2001 From: "Yoshi Tashiro (Quartile)" Date: Wed, 24 Apr 2024 12:46:55 +0900 Subject: [PATCH] [4120][ADD] analytic_plan_code (#79) --- analytic_plan_code/README.rst | 58 +++ analytic_plan_code/__init__.py | 1 + analytic_plan_code/__manifest__.py | 15 + analytic_plan_code/i18n/ja.po | 26 ++ analytic_plan_code/models/__init__.py | 1 + .../models/account_analytic_plan.py | 10 + analytic_plan_code/readme/DESCRIPTION.md | 3 + .../static/description/index.html | 411 ++++++++++++++++++ .../views/account_analytic_plan_views.xml | 23 + .../odoo/addons/analytic_plan_code | 1 + setup/analytic_plan_code/setup.py | 6 + 11 files changed, 555 insertions(+) create mode 100644 analytic_plan_code/README.rst create mode 100644 analytic_plan_code/__init__.py create mode 100644 analytic_plan_code/__manifest__.py create mode 100644 analytic_plan_code/i18n/ja.po create mode 100644 analytic_plan_code/models/__init__.py create mode 100644 analytic_plan_code/models/account_analytic_plan.py create mode 100644 analytic_plan_code/readme/DESCRIPTION.md create mode 100644 analytic_plan_code/static/description/index.html create mode 100644 analytic_plan_code/views/account_analytic_plan_views.xml create mode 120000 setup/analytic_plan_code/odoo/addons/analytic_plan_code create mode 100644 setup/analytic_plan_code/setup.py diff --git a/analytic_plan_code/README.rst b/analytic_plan_code/README.rst new file mode 100644 index 00000000..bac0084e --- /dev/null +++ b/analytic_plan_code/README.rst @@ -0,0 +1,58 @@ +================== +Analytic Plan Code +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:5e35bb1b75dd0872272470eb82087710554559fb4f9269a790d3337acdfffd4c + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Faxls--custom-lightgray.png?logo=github + :target: https://github.com/qrtl/axls-custom/tree/16.0/analytic_plan_code + :alt: qrtl/axls-custom + +|badge1| |badge2| |badge3| + +This module adds the code field to the analytic plan. + +The code from the analytic plan is expected to be used in modules that +inherit this one. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Quartile Limited + +Maintainers +----------- + +This module is part of the `qrtl/axls-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/analytic_plan_code/__init__.py b/analytic_plan_code/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/analytic_plan_code/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/analytic_plan_code/__manifest__.py b/analytic_plan_code/__manifest__.py new file mode 100644 index 00000000..fa088d03 --- /dev/null +++ b/analytic_plan_code/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2024 Quartile Limited +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +{ + "name": "Analytic Plan Code", + "version": "16.0.1.0.0", + "category": "Accounting", + "author": "Quartile Limited", + "website": "https://www.quartile.co", + "license": "LGPL-3", + "depends": ["analytic"], + "data": [ + "views/account_analytic_plan_views.xml", + ], + "installable": True, +} diff --git a/analytic_plan_code/i18n/ja.po b/analytic_plan_code/i18n/ja.po new file mode 100644 index 00000000..9e7a9e16 --- /dev/null +++ b/analytic_plan_code/i18n/ja.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * analytic_plan_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-04-20 09:30+0000\n" +"PO-Revision-Date: 2024-04-20 09:30+0000\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_plan_code +#: model:ir.model,name:analytic_plan_code.model_account_analytic_plan +msgid "Analytic Plans" +msgstr "分析プラン" + +#. module: analytic_plan_code +#: model:ir.model.fields,field_description:analytic_plan_code.field_account_analytic_plan__code +msgid "Code" +msgstr "コード" diff --git a/analytic_plan_code/models/__init__.py b/analytic_plan_code/models/__init__.py new file mode 100644 index 00000000..6a76d0be --- /dev/null +++ b/analytic_plan_code/models/__init__.py @@ -0,0 +1 @@ +from . import account_analytic_plan diff --git a/analytic_plan_code/models/account_analytic_plan.py b/analytic_plan_code/models/account_analytic_plan.py new file mode 100644 index 00000000..e65b1bf5 --- /dev/null +++ b/analytic_plan_code/models/account_analytic_plan.py @@ -0,0 +1,10 @@ +# Copyright 2024 Quartile Limited +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). + +from odoo import fields, models + + +class AccountAnalylticPlan(models.Model): + _inherit = "account.analytic.plan" + + code = fields.Char() diff --git a/analytic_plan_code/readme/DESCRIPTION.md b/analytic_plan_code/readme/DESCRIPTION.md new file mode 100644 index 00000000..597f8e25 --- /dev/null +++ b/analytic_plan_code/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module adds the code field to the analytic plan. + +The code from the analytic plan is expected to be used in modules that inherit this one. diff --git a/analytic_plan_code/static/description/index.html b/analytic_plan_code/static/description/index.html new file mode 100644 index 00000000..483f617e --- /dev/null +++ b/analytic_plan_code/static/description/index.html @@ -0,0 +1,411 @@ + + + + + + +Analytic Plan Code + + + +
+

Analytic Plan Code

+ + +

Beta License: LGPL-3 qrtl/axls-custom

+

This module adds the code field to the analytic plan.

+

The code from the analytic plan is expected to be used in modules that +inherit this one.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Quartile Limited
  • +
+
+
+

Maintainers

+

This module is part of the qrtl/axls-custom project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/analytic_plan_code/views/account_analytic_plan_views.xml b/analytic_plan_code/views/account_analytic_plan_views.xml new file mode 100644 index 00000000..3724b983 --- /dev/null +++ b/analytic_plan_code/views/account_analytic_plan_views.xml @@ -0,0 +1,23 @@ + + + + account.analytic.plan.form + account.analytic.plan + + + + + + + + + account.analytic.plan.tree + account.analytic.plan + + + + + + + + diff --git a/setup/analytic_plan_code/odoo/addons/analytic_plan_code b/setup/analytic_plan_code/odoo/addons/analytic_plan_code new file mode 120000 index 00000000..daf2d568 --- /dev/null +++ b/setup/analytic_plan_code/odoo/addons/analytic_plan_code @@ -0,0 +1 @@ +../../../../analytic_plan_code \ No newline at end of file diff --git a/setup/analytic_plan_code/setup.py b/setup/analytic_plan_code/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/analytic_plan_code/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)