diff --git a/nfu_account/README.rst b/nfu_account/README.rst new file mode 100644 index 0000000..b17f6b9 --- /dev/null +++ b/nfu_account/README.rst @@ -0,0 +1,62 @@ +=========== +NFU Account +=========== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4dfaea54e4d01502b433eb5c0dcca409a5fbe2c3f175e29382a19230343183c9 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-bruecksen%2Fnfu-lightgray.png?logo=github + :target: https://github.com/bruecksen/nfu/tree/16.0/nfu_account + :alt: bruecksen/nfu + +|badge1| |badge2| |badge3| + +This module adds EKG-specific fuctionalities + +- Credit to customer/partner view + +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + +- :16.0.1.0.0: Initial module. + +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 +~~~~~~~ + +* BAKEUP + +Maintainers +~~~~~~~~~~~ + +This module is part of the `bruecksen/nfu `_ project on GitHub. + +You are welcome to contribute. diff --git a/nfu_account/__init__.py b/nfu_account/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/nfu_account/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/nfu_account/__manifest__.py b/nfu_account/__manifest__.py new file mode 100644 index 0000000..ff8285f --- /dev/null +++ b/nfu_account/__manifest__.py @@ -0,0 +1,14 @@ +{ + "name": "NFU Account", + "summary": "Adds EKG related features to accounting", + "author": "BAKEUP", + "website": "https://www.bakeup.org", + "category": "Stock", + "version": "16.0.1.0.0", + "depends": ["account"], + "data": [ + "views/account_move_views.xml", + ], + "license": "LGPL-3", + "application": True, +} diff --git a/nfu_account/i18n/de.po b/nfu_account/i18n/de.po new file mode 100644 index 0000000..96ced53 --- /dev/null +++ b/nfu_account/i18n/de.po @@ -0,0 +1,96 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * nfu_ekg_stock +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-01 20:16+0000\n" +"PO-Revision-Date: 2024-07-01 22:18+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: en\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.4.4\n" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,print_report_name:nfu_ekg_stock.action_report_ekg_delivery +msgid "" +"'EKG Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)" +msgstr "" +"'EKG Lieferschein - %s - %s' % (object.partner_id.name or '', object.name)" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,print_report_name:nfu_ekg_stock.action_report_ekg_delivery_compact +msgid "" +"'EKG Delivery Slip Compact - %s - %s' % (object.partner_id.name or '', " +"object.name)" +msgstr "" +"'EKG kompakter Lieferschein - %s - %s' % (object.partner_id.name or '', " +"object.name)" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,print_report_name:nfu_ekg_stock.action_report_ekg_packing_list +msgid "" +"'EKG Packing List - %s - %s' % (object.partner_id.name or '', object.name)" +msgstr "" +"'EKG Packliste - %s - %s' % (object.partner_id.name or '', object.name)" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document +msgid "Available" +msgstr "Verfügbar" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document +msgid "Batch Size" +msgstr "Gebindegröße" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document +msgid "Product" +msgstr "Produkt" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_compact_document +msgid "Qty" +msgstr "Menge" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_delivery_document +msgid "Signature" +msgstr "Unterschrift" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list +msgid "Batch
Size" +msgstr "Gebinde
größe" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_delivery +msgid "EKG Delivery Slip" +msgstr "EKG Lieferschein" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_delivery_compact +msgid "EKG Delivery Slip Compact" +msgstr "EKG kompakter Lieferschein" + +#. module: nfu_ekg_stock +#: model:ir.actions.report,name:nfu_ekg_stock.action_report_ekg_packing_list +msgid "EKG Packing List" +msgstr "EKG Packliste" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list +msgid "Internal
Reference" +msgstr "Artikel
nummer" + +#. module: nfu_ekg_stock +#: model_terms:ir.ui.view,arch_db:nfu_ekg_stock.report_ekg_packing_list +msgid "Product" +msgstr "Produkt" diff --git a/nfu_account/models/__init__.py b/nfu_account/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/nfu_account/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/nfu_account/models/res_partner.py b/nfu_account/models/res_partner.py new file mode 100644 index 0000000..2fac0ed --- /dev/null +++ b/nfu_account/models/res_partner.py @@ -0,0 +1,14 @@ +from odoo import api, fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + nfu_credit = fields.Monetary( + string="Customer Credit", compute="_compute_nfu_credit" + ) + + @api.depends("commercial_partner_id.credit") + def _compute_nfu_credit(self): + for partner in self: + partner.nfu_credit = -partner.commercial_partner_id.credit diff --git a/nfu_account/readme/CONTRIBUTERS.rst b/nfu_account/readme/CONTRIBUTERS.rst new file mode 100644 index 0000000..875b8ba --- /dev/null +++ b/nfu_account/readme/CONTRIBUTERS.rst @@ -0,0 +1 @@ +Niels Göttsch \ No newline at end of file diff --git a/nfu_account/readme/DESCRIPTION.rst b/nfu_account/readme/DESCRIPTION.rst new file mode 100644 index 0000000..e1cbe49 --- /dev/null +++ b/nfu_account/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module adds EKG-specific fuctionalities + +- Credit to customer/partner view \ No newline at end of file diff --git a/nfu_account/readme/HISTORY.rst b/nfu_account/readme/HISTORY.rst new file mode 100644 index 0000000..9653e3a --- /dev/null +++ b/nfu_account/readme/HISTORY.rst @@ -0,0 +1 @@ +- :16.0.1.0.0: Initial module. diff --git a/nfu_account/static/description/icon.png b/nfu_account/static/description/icon.png new file mode 100644 index 0000000..1267712 Binary files /dev/null and b/nfu_account/static/description/icon.png differ diff --git a/nfu_account/static/description/index.html b/nfu_account/static/description/index.html new file mode 100644 index 0000000..219b4b7 --- /dev/null +++ b/nfu_account/static/description/index.html @@ -0,0 +1,427 @@ + + + + + +NFU Account + + + +
+

NFU Account

+ + +

Beta License: LGPL-3 bruecksen/nfu

+

This module adds EKG-specific fuctionalities

+
    +
  • Credit to customer/partner view
  • +
+

Table of contents

+ +
+

Changelog

+
    +
  • +++ + + + +
    16.0.1.0.0:Initial module.
    +
  • +
+
+
+

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

+
    +
  • BAKEUP
  • +
+
+
+

Maintainers

+

This module is part of the bruecksen/nfu project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/nfu_account/views/account_move_views.xml b/nfu_account/views/account_move_views.xml new file mode 100644 index 0000000..c2f216b --- /dev/null +++ b/nfu_account/views/account_move_views.xml @@ -0,0 +1,34 @@ + + + + partner.credit.tree + res.partner + + + + + + + + + + partner.credit.kanban.nfu_credit + res.partner + + + + + + + +
  • + Credit: +
  • +
    +
    +
    +