[MIG] partner_statement: Migration to 18.0
This commit is contained in:
committed by
Miquel Raïch
parent
7899fff564
commit
b054d48e24
@@ -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 <https://github.com/OCA/account-financial-reporting/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 <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20partner_statement%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20partner_statement%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -149,6 +149,7 @@ Contributors
|
||||
- Dhara Solanki <dhara.solanki@initos.com>
|
||||
- Danny Adair <danny@o4sb.com>
|
||||
- Simone Rubino <simone.rubino@pytech.it>
|
||||
- Mohamed Alkobrosli <malkobrosly@kencove.com>
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
@@ -169,8 +170,8 @@ promote its widespread use.
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-MiquelRForgeFlow|
|
||||
|maintainer-MiquelRForgeFlow|
|
||||
|
||||
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/17.0/partner_statement>`_ project on GitHub.
|
||||
This module is part of the `OCA/account-financial-reporting <https://github.com/OCA/account-financial-reporting/tree/18.0/partner_statement>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)",
|
||||
|
||||
1
partner_statement/models/__init__.py
Normal file
1
partner_statement/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import account_move_line
|
||||
13
partner_statement/models/account_move_line.py
Normal file
13
partner_statement/models/account_move_line.py
Normal file
@@ -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",
|
||||
)
|
||||
@@ -4,3 +4,4 @@
|
||||
- Dhara Solanki \<<dhara.solanki@initos.com>\>
|
||||
- Danny Adair \<<danny@o4sb.com>\>
|
||||
- Simone Rubino \<<simone.rubino@pytech.it>\>
|
||||
- Mohamed Alkobrosli \<<malkobrosly@kencove.com>\>
|
||||
|
||||
@@ -374,7 +374,7 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:2126a5bef5a0d3aed14256bd6b1fa5389a176dc83e7793d8aea8c6c093f8a86e
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/17.0/partner_statement"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-17-0/account-financial-reporting-17-0-partner_statement"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/18.0/partner_statement"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-18-0/account-financial-reporting-18-0-partner_statement"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>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.</li>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20partner_statement%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/account-financial-reporting/issues/new?body=module:%20partner_statement%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -504,6 +504,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<li>Dhara Solanki <<a class="reference external" href="mailto:dhara.solanki@initos.com">dhara.solanki@initos.com</a>></li>
|
||||
<li>Danny Adair <<a class="reference external" href="mailto:danny@o4sb.com">danny@o4sb.com</a>></li>
|
||||
<li>Simone Rubino <<a class="reference external" href="mailto:simone.rubino@pytech.it">simone.rubino@pytech.it</a>></li>
|
||||
<li>Mohamed Alkobrosli <<a class="reference external" href="mailto:malkobrosly@kencove.com">malkobrosly@kencove.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
@@ -517,7 +518,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/MiquelRForgeFlow"><img alt="MiquelRForgeFlow" src="https://github.com/MiquelRForgeFlow.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/17.0/partner_statement">OCA/account-financial-reporting</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/account-financial-reporting/tree/18.0/partner_statement">OCA/account-financial-reporting</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user