pos_order.py 268 B

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