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 @@ - +