You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
# coding: utf-8 # Copyright 2017 Akretion (http://www.akretion.com). # @author Raphaël Reverdy <raphael.reverdy@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, api
class Partner(models.Model): _inherit = "res.partner"
@api.multi def select_in_pos_current_order(self): """Set point of sale customer to this partner.
Action called from view with self.id = a res.partner. """
return { 'type': 'ir.actions.act_tell_pos', 'payload': { 'type': 'partner.partner_selected', 'partner_id': self.id, 'name': self.name, }, }
|