From 1fc21e45a5e3f4772a7e135f4833ec7e08eeee13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Tue, 21 Nov 2023 09:50:33 +0100 Subject: [PATCH] [ADD]pms_account_move_budget module --- pms_account_move_budget/README.rst | 71 +++ pms_account_move_budget/__init__.py | 1 + pms_account_move_budget/__manifest__.py | 19 + pms_account_move_budget/models/__init__.py | 1 + .../models/account_move_budget_line.py | 12 + .../readme/DESCRIPTION.rst | 1 + .../static/description/index.html | 414 ++++++++++++++++++ .../views/account_move_budget_line_view.xml | 19 + .../odoo/addons/pms_account_move_budget | 1 + setup/pms_account_move_budget/setup.py | 6 + 10 files changed, 545 insertions(+) create mode 100644 pms_account_move_budget/README.rst create mode 100644 pms_account_move_budget/__init__.py create mode 100644 pms_account_move_budget/__manifest__.py create mode 100644 pms_account_move_budget/models/__init__.py create mode 100644 pms_account_move_budget/models/account_move_budget_line.py create mode 100644 pms_account_move_budget/readme/DESCRIPTION.rst create mode 100644 pms_account_move_budget/static/description/index.html create mode 100644 pms_account_move_budget/views/account_move_budget_line_view.xml create mode 120000 setup/pms_account_move_budget/odoo/addons/pms_account_move_budget create mode 100644 setup/pms_account_move_budget/setup.py diff --git a/pms_account_move_budget/README.rst b/pms_account_move_budget/README.rst new file mode 100644 index 000000000..ff6beb6ba --- /dev/null +++ b/pms_account_move_budget/README.rst @@ -0,0 +1,71 @@ +=============================== +Property in Account Move Budget +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:6815896ead9b61b022c88f9507e7e1bb2442a2f44e39e64ad71767c7db86e830 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fpms-lightgray.png?logo=github + :target: https://github.com/OCA/pms/tree/14.0/pms_account_move_budget + :alt: OCA/pms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/pms-14-0/pms-14-0-pms_account_move_budget + :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/pms&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the pms property relational field to the account move budget model to enable the use of properties in accounting budgets. + +**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 +~~~~~~~ + +* Comunitea + +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/pms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pms_account_move_budget/__init__.py b/pms_account_move_budget/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/pms_account_move_budget/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/pms_account_move_budget/__manifest__.py b/pms_account_move_budget/__manifest__.py new file mode 100644 index 000000000..04a99e1c9 --- /dev/null +++ b/pms_account_move_budget/__manifest__.py @@ -0,0 +1,19 @@ +# © 2023 Comunitea +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Property in Account Move Budget", + "summary": "Add Property Field in Account Move Budget", + "version": "14.0.1.0.0", + "category": "Custom", + "website": "https://github.com/OCA/pms", + "author": "Comunitea, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "account_move_budget", + ], + "data": [ + "views/account_move_budget_line_view.xml", + ], +} diff --git a/pms_account_move_budget/models/__init__.py b/pms_account_move_budget/models/__init__.py new file mode 100644 index 000000000..d218e5394 --- /dev/null +++ b/pms_account_move_budget/models/__init__.py @@ -0,0 +1 @@ +from . import account_move_budget_line diff --git a/pms_account_move_budget/models/account_move_budget_line.py b/pms_account_move_budget/models/account_move_budget_line.py new file mode 100644 index 000000000..ceecb3087 --- /dev/null +++ b/pms_account_move_budget/models/account_move_budget_line.py @@ -0,0 +1,12 @@ +# Copyright 2023 Comunitea S.L. (http://www.comunitea.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountMoveBudgetLine(models.Model): + _inherit = "account.move.budget.line" + + pms_property_id = fields.Many2one( + "pms.property", string="Hotel", required=False, index=True + ) diff --git a/pms_account_move_budget/readme/DESCRIPTION.rst b/pms_account_move_budget/readme/DESCRIPTION.rst new file mode 100644 index 000000000..ba286df64 --- /dev/null +++ b/pms_account_move_budget/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds the pms property relational field to the account move budget model to enable the use of properties in accounting budgets. diff --git a/pms_account_move_budget/static/description/index.html b/pms_account_move_budget/static/description/index.html new file mode 100644 index 000000000..07566aeaa --- /dev/null +++ b/pms_account_move_budget/static/description/index.html @@ -0,0 +1,414 @@ + + + + + + +Property in Account Move Budget + + + +
+

Property in Account Move Budget

+ + +

Beta License: AGPL-3 OCA/pms Translate me on Weblate Try me on Runboat

+

This module adds the pms property relational field to the account move budget model to enable the use of properties in accounting budgets.

+

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

+
    +
  • Comunitea
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/pms project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/pms_account_move_budget/views/account_move_budget_line_view.xml b/pms_account_move_budget/views/account_move_budget_line_view.xml new file mode 100644 index 000000000..9d56fb4b9 --- /dev/null +++ b/pms_account_move_budget/views/account_move_budget_line_view.xml @@ -0,0 +1,19 @@ + + + + + Account Move Budget Line Hotel tree + account.move.budget.line + + + + + + + + + diff --git a/setup/pms_account_move_budget/odoo/addons/pms_account_move_budget b/setup/pms_account_move_budget/odoo/addons/pms_account_move_budget new file mode 120000 index 000000000..152f333d9 --- /dev/null +++ b/setup/pms_account_move_budget/odoo/addons/pms_account_move_budget @@ -0,0 +1 @@ +../../../../pms_account_move_budget \ No newline at end of file diff --git a/setup/pms_account_move_budget/setup.py b/setup/pms_account_move_budget/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/pms_account_move_budget/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)