OpenERP 7 : How can I set a default date in a create form?
问题 I am new to OpenERP and Python and I am trying to set a default date in a create form which has to be 28 days after when the user is using the create form. The last thing I've tried is this : from datetime import datetime from datetime import date from datetime import timedelta from dateutil.relativedelta import relativedelta from openerp.osv import fields, osv class sale_order_dates(osv.osv): _inherit = 'sale.order' _columns = { 'requested_date': fields.date('Requested Date', help="Date