跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

X

xianliu

@xianliu
关于
帖子
3
主题
2
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • Inherit
    X xianliu

    有两个CLASS,第2个继承第1个的对象[color=red]service.type[/color],但是第2个对象未在数据库中创建,是什么原因?_table如果加上是OK的,这里就有另外一个问题了,_name与_table相同时是可以省略的,这里为什么不给省略?

    class eservice_type(osv.osv):&nbsp; &nbsp; <br />&nbsp;  _name = &#039;service.type&#039;<br />&nbsp; &nbsp; _table = &#039;bn_service_type&#039;&nbsp; &nbsp; <br />&nbsp; &nbsp; _columns= {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#039;description&#039;:fields.char(&quot;description&quot;, size=240, translate=True, help=&#039;&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; _default={<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;description&#039;:lambda *a:&#039;hello&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />eservice_type()<br /><br />class eservice_bn_lookup_types(osv.osv):<br />&nbsp;  <br />&nbsp; &nbsp; _name = &#039;bn.lookup.types&#039; <br />&nbsp; &nbsp; _inherit = &#039;service.type&#039;<br />&nbsp; &nbsp; _columns={<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &#039;meaning&#039;:fields.char(&quot;meaning&quot;, size=80, translate=True, help=&#039;&#039;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; <br />eservice_bn_lookup_types()
    

  • 采购订单号
    X xianliu

    [quote author=digitalsatori link=topic=4461.msg12247#msg12247 date=1352699271]
    看这里: 设置->设置->序号与标示符->序列

    并注意implementation字段将其改为:no gap(无间隔)
    [/quote]

    我试了还是不行的,我换个说法来表达我的意思.
    【如何保证耶订单不跳号】


  • 采购订单号
    X xianliu

    采购订单号在哪里生成,如何更改其生成规则或更改为新增采购订单时不保存的情况下,下次再新增时订单号从此订单号开始编号?

  • 登录

  • 没有帐号? 注册

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组