diff --git a/account_accountant_ux/__manifest__.py b/account_accountant_ux/__manifest__.py
index 2c90a675..2b79ba9a 100644
--- a/account_accountant_ux/__manifest__.py
+++ b/account_accountant_ux/__manifest__.py
@@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Accounting Accountant UX',
- 'version': "16.0.2.3.0",
+ 'version': "16.0.2.4.0",
'category': 'Accounting',
'sequence': 14,
'summary': '',
diff --git a/account_accountant_ux/models/__init__.py b/account_accountant_ux/models/__init__.py
index c17867bb..115a2cc1 100644
--- a/account_accountant_ux/models/__init__.py
+++ b/account_accountant_ux/models/__init__.py
@@ -8,3 +8,4 @@
from . import account_move_line
from . import account_move
from . import account_journal_dashboard
+from . import res_partner
diff --git a/account_accountant_ux/models/res_partner.py b/account_accountant_ux/models/res_partner.py
new file mode 100644
index 00000000..58e60677
--- /dev/null
+++ b/account_accountant_ux/models/res_partner.py
@@ -0,0 +1,20 @@
+from odoo import models
+from odoo.exceptions import UserError
+
+class ResPartner(models.Model):
+ _name = 'res.partner'
+ _inherit = 'res.partner'
+
+ def open_mass_partner_ledger(self):
+ selected_partner_ids = self.env.context.get('active_ids')
+ if len(selected_partner_ids) < 1000:
+
+ action = self.env["ir.actions.actions"]._for_xml_id("account_reports.action_account_report_partner_ledger")
+ action['params'] = {
+
+ 'options': {'partner_ids': selected_partner_ids},
+ 'ignore_session': 'both',
+ }
+ return action
+ else:
+ raise UserError('Se deben seleccionar menos de 1000 contactos')
diff --git a/account_accountant_ux/views/res_partner_view.xml b/account_accountant_ux/views/res_partner_view.xml
index 4744d8f1..dfa7caa4 100644
--- a/account_accountant_ux/views/res_partner_view.xml
+++ b/account_accountant_ux/views/res_partner_view.xml
@@ -24,5 +24,29 @@
+
+ Partner Ledger Report
+
+
+ tree
+ code
+
+ if records:
+ action = records.open_mass_partner_ledger()
+
+
+
+
+ res.partner.search.inherit
+ res.partner
+
+
+
+
+
+
+
+
+