From 101bebe2a6fa4015c59436cfdfe19ecac0e4e44d Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Wed, 19 May 2010 16:29:45 +0530 Subject: [PATCH] [FIX] Fixes for invoice refund wizard and account_folowup act_window domain bzr revid: jvo@tinyerp.com-20100519105945-xhprbuclbsogvzp2 --- addons/account/account_invoice_view.xml | 1 + addons/account/account_view.xml | 4 ++-- addons/account/wizard/account_invoice_refund.py | 8 ++++++-- addons/account_followup/followup_view.xml | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 16e3cc656cd..3bb6a3b8cbb 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -479,6 +479,7 @@ + diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a94ae9428ab..1989eb9a612 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -640,9 +640,9 @@ - + - + diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index b11d6d661bb..1634d66c923 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -29,10 +29,14 @@ class account_invoice_refund(osv.osv_memory): _name = "account.invoice.refund" _description = "Invoice Refund" _columns = { - 'date': fields.date('Operation date', required=False), + 'date': fields.date('Operation date', required=False, help='This date will be used as the invoice date for Refund Invoice and Period will be chosen accordingly!'), 'period': fields.many2one('account.period', 'Force period', required=False), 'description': fields.char('Description', size=150, required=True), - } + } + + _defaults = { + 'date': lambda *a: time.strftime('%Y-%m-%d'), + } def compute_refund(self, cr, uid, ids, mode, context=None): """ diff --git a/addons/account_followup/followup_view.xml b/addons/account_followup/followup_view.xml index 057e761cbca..ae31f7253a2 100644 --- a/addons/account_followup/followup_view.xml +++ b/addons/account_followup/followup_view.xml @@ -124,7 +124,7 @@ - +