Skip to content

Commit

Permalink
[Karthi] | BAH-3652 | Refactor. Menu align and feadback changes has b…
Browse files Browse the repository at this point in the history
…een updated (#86)
  • Loading branch information
karthikeyansp91 authored Mar 13, 2024
1 parent 3ea9efd commit 16093c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bahmni_reports/report/sale_discount_head_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
<field name="view_mode">form</field>
</record>

<menuitem id="menu_sale_discount_head_statement" name="Sales Discount Statement" parent="bahmni_reports.menu_stock_report_masters" action="action_sale_discount_head_statement_report" sequence="15"/>
<menuitem id="menu_sale_discount_head_statement" name="Sales Discount Statement" parent="bahmni_reports.menu_sale_config" action="action_sale_discount_head_statement_report" sequence="1"/>

</odoo>

0 comments on commit 16093c4

Please sign in to comment.