OE开发中错误信息的调用
-
直接代码
def dispatch_work_order_reduce_card_times(self,cr,uid,ids,context=None):<br /> <br /> service_card_id=self.read(cr,uid,ids,["service_card"],context)[0]["service_card"][0]<br /> if service_card_id:<br /> obj=self.pool.get("dispatch.service_card").read(cr,uid,service_card_id,["due_date","remaining_times"],context)<br /> if obj["remaining_times"]<1:<br /> raise osv.except_osv(_('Error!'), _('服务卡剩余次数为:0.'))
-
[检测到链接无效,已移除]