# -*- encoding: utf-8 -*- from openerp import models, api, exceptions, _ class PosOrderFix(models.Model): _inherit = "pos.order" @api.multi def button_fix(self): for order in self: order.write({'state': 'done'}) return True