diff --git a/partner_statement/README.rst b/partner_statement/README.rst
index d7eb61fe..be215c88 100644
--- a/partner_statement/README.rst
+++ b/partner_statement/README.rst
@@ -6,7 +6,7 @@
Partner Statement
=================
-..
+..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
@@ -21,13 +21,13 @@ Partner Statement
: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--financial--reporting-lightgray.png?logo=github
- :target: https://github.com/OCA/account-financial-reporting/tree/17.0/partner_statement
+ :target: https://github.com/OCA/account-financial-reporting/tree/18.0/partner_statement
:alt: OCA/account-financial-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-partner_statement
+ :target: https://translation.odoo-community.org/projects/account-financial-reporting-18-0/account-financial-reporting-18-0-partner_statement
: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-financial-reporting&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -128,7 +128,7 @@ 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 `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -149,6 +149,7 @@ Contributors
- Dhara Solanki
- Danny Adair
- Simone Rubino
+- Mohamed Alkobrosli
Maintainers
-----------
@@ -169,8 +170,8 @@ promote its widespread use.
Current `maintainer `__:
-|maintainer-MiquelRForgeFlow|
+|maintainer-MiquelRForgeFlow|
-This module is part of the `OCA/account-financial-reporting `_ project on GitHub.
+This module is part of the `OCA/account-financial-reporting `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/partner_statement/__init__.py b/partner_statement/__init__.py
index 997d84a6..81837962 100644
--- a/partner_statement/__init__.py
+++ b/partner_statement/__init__.py
@@ -1,4 +1,5 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
+from . import models
from . import report
from . import wizard
diff --git a/partner_statement/__manifest__.py b/partner_statement/__manifest__.py
index c8854ff5..2aa8233a 100644
--- a/partner_statement/__manifest__.py
+++ b/partner_statement/__manifest__.py
@@ -3,7 +3,7 @@
{
"name": "Partner Statement",
- "version": "17.0.1.3.0",
+ "version": "18.0.1.0.0",
"category": "Accounting & Finance",
"summary": "OCA Financial Reports",
"author": "ForgeFlow, Odoo Community Association (OCA)",
diff --git a/partner_statement/models/__init__.py b/partner_statement/models/__init__.py
new file mode 100644
index 00000000..8795b3be
--- /dev/null
+++ b/partner_statement/models/__init__.py
@@ -0,0 +1 @@
+from . import account_move_line
diff --git a/partner_statement/models/account_move_line.py b/partner_statement/models/account_move_line.py
new file mode 100644
index 00000000..8cb05fef
--- /dev/null
+++ b/partner_statement/models/account_move_line.py
@@ -0,0 +1,13 @@
+from odoo import fields, models
+
+
+class AccountMoveLine(models.Model):
+ _inherit = "account.move.line"
+
+ # === Misc Information === #
+ blocked = fields.Boolean(
+ string="No Follow-up",
+ default=False,
+ help="You can check this box to mark this journal item "
+ "as a litigation with the associated partner",
+ )
diff --git a/partner_statement/readme/CONTRIBUTORS.md b/partner_statement/readme/CONTRIBUTORS.md
index 032b15c0..c35a1544 100644
--- a/partner_statement/readme/CONTRIBUTORS.md
+++ b/partner_statement/readme/CONTRIBUTORS.md
@@ -4,3 +4,4 @@
- Dhara Solanki \<\>
- Danny Adair \<\>
- Simone Rubino \<\>
+- Mohamed Alkobrosli \<\>
diff --git a/partner_statement/static/description/index.html b/partner_statement/static/description/index.html
index 7ff53b0e..1bad485f 100644
--- a/partner_statement/static/description/index.html
+++ b/partner_statement/static/description/index.html
@@ -374,7 +374,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2126a5bef5a0d3aed14256bd6b1fa5389a176dc83e7793d8aea8c6c093f8a86e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module extends the functionality of Invoicing to support the
printing of customer and vendor statements. There are three types of
statements: Activity, Detailed Activity, and Outstanding. Aging details
@@ -484,7 +484,7 @@ customer_outstanding_statement merged to create partner_statement.
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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -517,7 +518,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainer:

-
This module is part of the OCA/account-financial-reporting project on GitHub.
+
This module is part of the OCA/account-financial-reporting project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/partner_statement/tests/test_outstanding_statement.py b/partner_statement/tests/test_outstanding_statement.py
index f8af481e..9e3e9b9b 100644
--- a/partner_statement/tests/test_outstanding_statement.py
+++ b/partner_statement/tests/test_outstanding_statement.py
@@ -5,7 +5,8 @@
from dateutil.relativedelta import relativedelta
from odoo import fields
-from odoo.tests.common import Form, TransactionCase, new_test_user
+from odoo.tests import Form
+from odoo.tests.common import TransactionCase, new_test_user
class TestOutstandingStatement(TransactionCase):
diff --git a/partner_statement/tests/test_res_config_settings.py b/partner_statement/tests/test_res_config_settings.py
index 9c54bf02..39534dd2 100644
--- a/partner_statement/tests/test_res_config_settings.py
+++ b/partner_statement/tests/test_res_config_settings.py
@@ -1,6 +1,6 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
-from odoo.tests.common import TransactionCase
+from odoo.tests import TransactionCase, users
class TestResConfigSettings(TransactionCase):
@@ -27,6 +27,7 @@ class TestResConfigSettings(TransactionCase):
cls.account_user = cls.cr.fetchone()[0]
cls.user_obj = cls.env["res.users"].with_user(cls.account_user)
+ @users("admin")
def test_groups(self):
conf = self.config.create(
{
@@ -36,11 +37,12 @@ class TestResConfigSettings(TransactionCase):
}
)
conf.set_values()
+ self.admin_user = self.env.ref("base.user_admin")
self.assertFalse(
- self.user_obj._has_group("partner_statement.group_outstanding_statement")
+ self.admin_user._has_group("partner_statement.group_outstanding_statement")
)
self.assertTrue(
- self.user_obj._has_group("partner_statement.group_activity_statement")
+ self.admin_user._has_group("partner_statement.group_activity_statement")
)
res = (
self.env["activity.statement.wizard"]