oe_shipper.py 373 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields, api
  3. from .. import defs
  4. class Shipper(models.Model):
  5. _name = 'oe.shipper'
  6. _description = u'物流商'
  7. name = fields.Char('名称')
  8. code = fields.Char('编码')
  9. # @api.model_cr
  10. def init(self):
  11. from ..data.oe_shipper_datas import init_sql
  12. self.env.cr.execute(init_sql)