# -*- encoding: utf-8 -*- from openerp import models, fields, api, _ from openerp.exceptions import Warning import openerp.addons.decimal_precision as dp from datetime import datetime from openerp.tools import float_compare class sale_order(models.Model): _inherit = 'sale.order' transfered = fields.Boolean(string="Transferido", readonly=True) @api.one def action_wait(self): res = super(sale_order, self).action_wait() self.write({'state': 'progress'}) return res