From 0b01b03309b22968a34479869d7d5698b8e2d0e9 Mon Sep 17 00:00:00 2001 From: Roberto Fichera Date: Wed, 14 Feb 2018 19:28:42 +0100 Subject: [PATCH] [10.0][IMP] account_financial_report_qweb: Add salesperson filter selection in open_items_wizard --- account_financial_report_qweb/wizard/open_items_wizard.py | 3 +++ .../wizard/open_items_wizard_view.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/account_financial_report_qweb/wizard/open_items_wizard.py b/account_financial_report_qweb/wizard/open_items_wizard.py index 9b45adc5..77cad468 100644 --- a/account_financial_report_qweb/wizard/open_items_wizard.py +++ b/account_financial_report_qweb/wizard/open_items_wizard.py @@ -45,6 +45,8 @@ class OpenItemsReportWizard(models.TransientModel): string='Filter partners', ) + user_id = fields.Many2one('res.users', string='Salesman') + @api.onchange('receivable_accounts_only', 'payable_accounts_only') def onchange_type_accounts_only(self): """Handle receivable/payable accounts only change.""" @@ -79,6 +81,7 @@ class OpenItemsReportWizard(models.TransientModel): 'company_id': self.company_id.id, 'filter_account_ids': [(6, 0, self.account_ids.ids)], 'filter_partner_ids': [(6, 0, self.partner_ids.ids)], + 'user_id': self.user_id.id, } def _export(self, xlsx_report=False): diff --git a/account_financial_report_qweb/wizard/open_items_wizard_view.xml b/account_financial_report_qweb/wizard/open_items_wizard_view.xml index d8c97ece..54fc010f 100644 --- a/account_financial_report_qweb/wizard/open_items_wizard_view.xml +++ b/account_financial_report_qweb/wizard/open_items_wizard_view.xml @@ -18,6 +18,9 @@ + + +