Tags

,


from datetime import date, datetime, timedelta
 from openerp.osv import fields, osv
 from openerp.tools.translate import _
 class sale(osv.osv):
 _inherit = "sale.order"
 _columns = {
 'date':fields.date('Date')
 }
 _defaults = {
 'date': date.today().strftime('%Y-%m-%d'),
 }
Advertisements