From 16093c4b997ed9f51b6aef7f9ab360a96d41a73b Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Wed, 13 Mar 2024 12:59:27 +0530 Subject: [PATCH] [Karthi] | BAH-3652 | Refactor. Menu align and feadback changes has been updated (#86) --- bahmni_reports/report/sale_discount_head_statement.py | 3 ++- bahmni_reports/report/sale_discount_head_statement_view.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bahmni_reports/report/sale_discount_head_statement.py b/bahmni_reports/report/sale_discount_head_statement.py index 55c21d4..8f5c383 100644 --- a/bahmni_reports/report/sale_discount_head_statement.py +++ b/bahmni_reports/report/sale_discount_head_statement.py @@ -14,11 +14,12 @@ class SaleDiscountHeadStatement(models.Model): _name = 'sale.discount.head.statement' + name = fields.Char(string="Report Name" , default='Sales Discount Statement') from_date = fields.Date('From Date',default=lambda * a: time.strftime('%Y-%m-%d')) to_date = fields.Date('To Date',default=lambda * a: time.strftime('%Y-%m-%d')) report_type = fields.Selection([('summary', 'Discount Head Wise'),('details', 'Customer Wise'),('order', 'Order Wise')], string='Report Type', widget='selection',default='summary') - discount_head_id = fields.Many2many('account.account','sale_discount_head_statement_reports','reports_id','discount_id','Discount Account Head',domain=[('account_type', '=', 'income_other')]) + discount_head_id = fields.Many2many('account.account','sale_discount_head_statement_reports','reports_id','discount_id','Discount Head',domain=[('account_type', '=', 'income_other')]) generate_date = fields.Datetime('Generate Date', default=time.strftime('%Y-%m-%d %H:%M:%S'), readonly=True) generate_user_id = fields.Many2one('res.users', 'Generate By', default=lambda self: self.env.user.id, readonly=True) diff --git a/bahmni_reports/report/sale_discount_head_statement_view.xml b/bahmni_reports/report/sale_discount_head_statement_view.xml index 0d39530..0bd8beb 100644 --- a/bahmni_reports/report/sale_discount_head_statement_view.xml +++ b/bahmni_reports/report/sale_discount_head_statement_view.xml @@ -54,6 +54,6 @@ form - +