diff --git a/account_partner_required/README.rst b/account_partner_required/README.rst
index 9a8d82da2..ae23c81bb 100644
--- a/account_partner_required/README.rst
+++ b/account_partner_required/README.rst
@@ -7,7 +7,7 @@ Account partner required
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:42303ff12c08cc214a8cb5a2bf826fda86566046c51cdd893ffe341801477e54
+ !! source digest: sha256:53ba91efaeae3ae76c2ae9e13346cb1df88f43c6261c2ee22c7c514f0103474c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Account partner required
: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--tools-lightgray.png?logo=github
- :target: https://github.com/OCA/account-financial-tools/tree/12.0/account_partner_required
+ :target: https://github.com/OCA/account-financial-tools/tree/14.0/account_partner_required
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_partner_required
+ :target: https://translation.odoo-community.org/projects/account-financial-tools-14-0/account-financial-tools-14-0-account_partner_required
: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-tools&target_branch=12.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/account-financial-tools&target_branch=14.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -66,7 +66,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.
@@ -99,6 +99,6 @@ 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/account-financial-tools `_ project on GitHub.
+This module is part of the `OCA/account-financial-tools `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_partner_required/__manifest__.py b/account_partner_required/__manifest__.py
index 76b65ecee..10ed29e89 100644
--- a/account_partner_required/__manifest__.py
+++ b/account_partner_required/__manifest__.py
@@ -7,14 +7,14 @@
{
"name": "Account partner required",
- "version": "12.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Accounting",
"license": "AGPL-3",
"summary": "Adds an option 'partner policy' on account types",
"author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-financial-tools",
"depends": [
- "account_type_menu",
+ "account_menu",
],
"data": [
"views/account.xml",
diff --git a/account_partner_required/models/account.py b/account_partner_required/models/account.py
index e98e1b0a7..502f01b14 100644
--- a/account_partner_required/models/account.py
+++ b/account_partner_required/models/account.py
@@ -30,7 +30,6 @@ class AccountAccountType(models.Model):
class AccountAccount(models.Model):
_inherit = "account.account"
- @api.multi
def get_partner_policy(self):
"""Extension point to obtain partner policy for an account"""
self.ensure_one()
@@ -40,7 +39,6 @@ class AccountAccount(models.Model):
class AccountMoveLine(models.Model):
_inherit = "account.move.line"
- @api.multi
def _check_partner_required_msg(self):
prec = self.env.user.company_id.currency_id.rounding
for line in self:
@@ -62,7 +60,6 @@ class AccountMoveLine(models.Model):
"'%s'."
) % (line.account_id.name_get()[0][1], line.name, line.partner_id.name)
- @api.multi
@api.constrains("partner_id", "account_id", "debit", "credit")
def _check_partner_required(self):
for line in self:
diff --git a/account_partner_required/static/description/index.html b/account_partner_required/static/description/index.html
index 146420253..7fbbc3753 100644
--- a/account_partner_required/static/description/index.html
+++ b/account_partner_required/static/description/index.html
@@ -367,9 +367,9 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:42303ff12c08cc214a8cb5a2bf826fda86566046c51cdd893ffe341801477e54
+!! source digest: sha256:53ba91efaeae3ae76c2ae9e13346cb1df88f43c6261c2ee22c7c514f0103474c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module adds an option Partner policy on account types.
You have the choice between 3 policies:
@@ -411,7 +411,7 @@ customer and supplier accounts.
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.
@@ -438,7 +438,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
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/account-financial-tools project on GitHub.
+
This module is part of the OCA/account-financial-tools project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/account_partner_required/tests/test_account_partner_required.py b/account_partner_required/tests/test_account_partner_required.py
index 904d49ee1..83b5759fd 100644
--- a/account_partner_required/tests/test_account_partner_required.py
+++ b/account_partner_required/tests/test_account_partner_required.py
@@ -26,6 +26,7 @@ class TestAccountPartnerRequired(common.TransactionCase):
}
)
liq_acc_type = self.env.ref("account.data_account_type_liquidity")
+ liq_acc_type.partner_policy = "optional"
self.account1 = self.account_obj.create(
{
"code": "124242",
@@ -38,6 +39,7 @@ class TestAccountPartnerRequired(common.TransactionCase):
"name": "acc type test",
"type": "other",
"partner_policy": "optional",
+ "internal_group": "asset",
}
)
self.account2 = self.account_obj.create(