From bb4d9665d2b7760d5c8d2979786fb82b05313c3a Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Tue, 12 Dec 2023 08:56:19 +0630 Subject: [PATCH 1/3] [ADD] partner_credit_rank --- partner_credit_rank/README.rst | 56 +++ partner_credit_rank/__init__.py | 1 + partner_credit_rank/__manifest__.py | 15 + partner_credit_rank/models/__init__.py | 1 + partner_credit_rank/models/res_partner.py | 20 + partner_credit_rank/readme/DESCRIPTION.md | 2 + .../static/description/index.html | 410 ++++++++++++++++++ .../views/res_partner_views.xml | 13 + 8 files changed, 518 insertions(+) create mode 100644 partner_credit_rank/README.rst create mode 100644 partner_credit_rank/__init__.py create mode 100644 partner_credit_rank/__manifest__.py create mode 100644 partner_credit_rank/models/__init__.py create mode 100644 partner_credit_rank/models/res_partner.py create mode 100644 partner_credit_rank/readme/DESCRIPTION.md create mode 100644 partner_credit_rank/static/description/index.html create mode 100644 partner_credit_rank/views/res_partner_views.xml diff --git a/partner_credit_rank/README.rst b/partner_credit_rank/README.rst new file mode 100644 index 00000000..47ee6bea --- /dev/null +++ b/partner_credit_rank/README.rst @@ -0,0 +1,56 @@ +=================== +Partner Credit Rank +=================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:31f42d7b268ae6fa2acb766ff60ee0820eed99dc1936f1e573b86d1f71f5eae2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-qrtl%2Frmm--custom-lightgray.png?logo=github + :target: https://github.com/qrtl/rmm-custom/tree/15.0/partner_credit_rank + :alt: qrtl/rmm-custom + +|badge1| |badge2| |badge3| + +This module adds a credit_rank field to assign a rank based on +creditworthiness. + +**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/rmm-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/partner_credit_rank/__init__.py b/partner_credit_rank/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/partner_credit_rank/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/partner_credit_rank/__manifest__.py b/partner_credit_rank/__manifest__.py new file mode 100644 index 00000000..fa333a28 --- /dev/null +++ b/partner_credit_rank/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2023 Quartile Limited +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Partner Credit Rank", + "version": "15.0.1.0.0", + "author": "Quartile Limited", + "website": "https://www.quartile.co", + "category": "Partner", + "license": "AGPL-3", + "depends": ["base"], + "data": [ + "views/res_partner_views.xml", + ], + "installable": True, +} diff --git a/partner_credit_rank/models/__init__.py b/partner_credit_rank/models/__init__.py new file mode 100644 index 00000000..91fed54d --- /dev/null +++ b/partner_credit_rank/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/partner_credit_rank/models/res_partner.py b/partner_credit_rank/models/res_partner.py new file mode 100644 index 00000000..96eb0c7e --- /dev/null +++ b/partner_credit_rank/models/res_partner.py @@ -0,0 +1,20 @@ +# Copyright 2023 Quartile Limited +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + credit_rank = fields.Selection( + [ + ("a", "A"), + ("b", "B"), + ("c", "C"), + ("d", "D"), + ("e", "E"), + ("f", "F"), + ("g", "G"), + ] + ) diff --git a/partner_credit_rank/readme/DESCRIPTION.md b/partner_credit_rank/readme/DESCRIPTION.md new file mode 100644 index 00000000..7aba9e39 --- /dev/null +++ b/partner_credit_rank/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds a credit_rank field to assign a rank based on +creditworthiness. diff --git a/partner_credit_rank/static/description/index.html b/partner_credit_rank/static/description/index.html new file mode 100644 index 00000000..b6ea0328 --- /dev/null +++ b/partner_credit_rank/static/description/index.html @@ -0,0 +1,410 @@ + + + + + + +Partner Credit Rank + + + +
+

Partner Credit Rank

+ + +

Beta License: AGPL-3 qrtl/rmm-custom

+

This module adds a credit_rank field to assign a rank based on +creditworthiness.

+

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

+

You are welcome to contribute.

+
+
+
+ + diff --git a/partner_credit_rank/views/res_partner_views.xml b/partner_credit_rank/views/res_partner_views.xml new file mode 100644 index 00000000..60831984 --- /dev/null +++ b/partner_credit_rank/views/res_partner_views.xml @@ -0,0 +1,13 @@ + + + + res.partner.form + res.partner + + + + + + + + From c2c1263a7f31978d85c3e027b708b3163ae817f1 Mon Sep 17 00:00:00 2001 From: Aungkokolin1997 Date: Tue, 12 Dec 2023 10:39:35 +0800 Subject: [PATCH 2/3] [MIG] partner_credit_rank: Migration to 11.0 --- partner_credit_rank/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partner_credit_rank/__manifest__.py b/partner_credit_rank/__manifest__.py index fa333a28..38d8a9e6 100644 --- a/partner_credit_rank/__manifest__.py +++ b/partner_credit_rank/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Partner Credit Rank", - "version": "15.0.1.0.0", + "version": "11.0.1.0.0", "author": "Quartile Limited", "website": "https://www.quartile.co", "category": "Partner", From 8311fb615b0711d024a18056f83a16f21323724d Mon Sep 17 00:00:00 2001 From: kanda999 Date: Wed, 13 Dec 2023 14:10:29 +0800 Subject: [PATCH 3/3] Add translation --- partner_credit_rank/i18n/ja.po | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 partner_credit_rank/i18n/ja.po diff --git a/partner_credit_rank/i18n/ja.po b/partner_credit_rank/i18n/ja.po new file mode 100644 index 00000000..b1dd69e6 --- /dev/null +++ b/partner_credit_rank/i18n/ja.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_credit_rank +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-13 06:07+0000\n" +"PO-Revision-Date: 2023-12-13 06:07+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: partner_credit_rank +#: model:ir.model,name:partner_credit_rank.model_res_partner +msgid "Contact" +msgstr "連絡先" + +#. module: partner_credit_rank +#: model:ir.model.fields,field_description:partner_credit_rank.field_res_partner_credit_rank +#: model:ir.model.fields,field_description:partner_credit_rank.field_res_users_credit_rank +msgid "Credit Rank" +msgstr "与信ランク"