我有以下扩展名:
from openerp import models, api, fields
class MyExtension(models.Model):
_inherit = 'stock.picking'
some_instances = fields.One2many(comodel_name='some.some',
inverse_name='return_picking')
@api.onchange('state')
def changed_return_picking_state(self):
import ipdb; ipdb.set_trace()
当我转移拣货或强制其可用性时,不会触发 onchange。