跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 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 中文社区

K

K_Go

@K_Go
关于
帖子
27
主题
4
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • 采购中如何处理运费,及收取运费的发票?
    K K_Go

    [quote author=hotkee link=topic=379.msg15128#msg15128 date=1367024124]
    有相关运费计算模块,而且功能强大,按照不同的物流公司和配送地址分别定价;按照送货地址制动计算价格
    [/quote]
    能举个例子不。。。我之前看过shipping_bista模块,它是集成了UPS,联邦,USPS的API。不知道你说的模块是什么。。。


  • 采购中如何处理运费,及收取运费的发票?
    K K_Go

    [quote author=mrshelly link=topic=379.msg9351#msg9351 date=1330044844]
    你定义一个 "运费类"的产品. 然后 运费类的科目你记到对应科目上, 然后 你添加几种运费的产品.

    然后 你采购的时候, 除了产品. 再把"运费产品"选择进来, 就完成了...
    [/quote]

    如果这样的话那 delivery costs 这个模块有什么用啊。。。


  • 关于隐藏页面和字段的问题
    K K_Go

    刚刚尝试了一下,发现现在只有Joshua这样的写法有效了,楼主的写法不成功。


  • Many2one和one2many的疑问
    K K_Go

    如果这样的话我们要对应别的字段是不是有两个办法,一个是看看能不能重载,另一个是用related字段。


  • Many2one和one2many的疑问
    K K_Go

    我看了下开发文档,

    one2many: fields.one2many( 'other.object.name', 'Field relation id', 'Fieldname', optional parameter)
    


    而many2one 是[code( 'other.object.name', 'Field Name',optional parameters)][/code]
    举个例子,比如:

    'training_ids': fields.one2many ( ‘openacademy.training’,‘instructor_id’,'Trainings')
    


    是指一门培训课程有多个培训师,课程和培训师间是一对多(one2many)的关系

    'instructor_id': fields.many2one('openacademy.instructor','Instructor' )
    


    是指多个培训师提供一门课程
    这样的话为什么many2one 不用 'Field relation id',难道可以直接默认到name这个字段吗?


  • OpenERP对象定义详解(连载中...)
    K K_Go

    写的真好~~


  • Mrshelly 在线培训 模块开发
    K K_Go

    马克。。。。


  • OpenERP 模块动态加载原理及启动代码分析
    K K_Go

    马克..........


  • ImportError: No module named osv
    K K_Go

    用7吧。。。。


  • 为何OE6.1始终检测不到新的模块,还需要改什么配置吗?
    K K_Go

    为什么不直接源码运行。。。然后放到源码那里就OK了。。


  • 在6.1上安装一个模块,7.0报错。。
    K K_Go

    [quote author=Joshua link=topic=5834.msg14664#msg14664 date=1364550541]
    在6.1上安装一个模块,7.0报错。
    其实标题我就看不明白了
    [/quote]
    哎呀。。从小到大语文都是我的硬伤啊。。其实就是说一个可以在6.1上安装的模块,在7.0装不了...


  • 在6.1上安装一个模块,7.0报错。。
    K K_Go

    [quote author=mrshelly link=topic=5834.msg14659#msg14659 date=1364476066]
    哦........
    [/quote]
    恩........


  • 一个many2many的问题
    K K_Go

    [quote author=mrshelly link=topic=5844.msg14660#msg14660 date=1364476200]

    <br /><br />&lt;!--定义表单视图 --&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;record model=&quot;ir.ui.view&quot; id=&quot;oecn_training_lesson_from_view&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;课程表单&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;type&quot;&gt;form&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;model&quot;&gt;oecn.training.lesson&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;arch&quot; type=&quot;xml&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;form string=&quot;Lesson&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;date_start&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;total_day&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;price&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;teacher&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;students&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/form&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/record&gt;<br /><br />Thanks.......<br /><br />
    


    [/quote]


  • 在6.1上安装一个模块,7.0报错。。
    K K_Go

    事实证明想改动很困难。。。还是用回6吧。。。


  • PenERP7.0视图类型无法创建及菜单权限问题
    K K_Go

    对。。。。7.0的开发手册好像有介绍到


  • 一个many2many的问题
    K K_Go

    [quote author=baolang00 link=topic=5844.msg14584#msg14584 date=1363912244]
    解决了,需要加个Form 😮
    [/quote]

    在哪儿加啊。。。不是已经有了吗。。我还以为是6和7的区别呢。。。。


  • 试图中添加一个按钮
    K K_Go

    [quote author=Jeff link=topic=5843.msg14626#msg14626 date=1364273186]
    楼上的,help.openerp.com 并未指定不能用中文提问,何不试试?
    [/quote]

    好奇的问问里面的karma是什么意思。。。


  • 试图中添加一个按钮
    K K_Go

    😮 😮 😮 😮 😮 😮 😮 😮 :-[ :-[ :-[ :-[[quote author=mrshelly link=topic=5843.msg14627#msg14627 date=1364278207]
    嗯. 问了一个问题
    <br / http://help.openerp.com/question/8084/ta-men-shuo-zhe-li-wen-wen-ti-neng-gou-de-dao-hen-kuai-su-di-jie-jue-shi-zhe-yang-de-ma/ br />[/quote]


  • 试图中添加一个按钮
    K K_Go

    经过几天的实验,发现直接在上面加一个按钮很难实现,于是在v7里面的 ”更多“ 添加了一个确认订单的触发。
    代码如下:

    &lt;record id=&quot;action_sale_order_confirm_sales&quot; model=&quot;ir.actions.server&quot;&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;Confirm sale1&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;type&quot;&gt;ir.actions.server&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;model_id&quot; ref=&quot;model_sale_order&quot;/&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;state&quot;&gt;code&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;code&quot;&gt;obj.action_button_confirm(context=context)&lt;/field&gt;<br />&lt;/record&gt;<br />&lt;record id=&quot;id_of_the_action_value&quot; model=&quot;ir.values&quot;&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;Confirm sale1&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;action_id&quot; ref=&quot;action_sale_order_confirm_sales&quot;/&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;value&quot; eval=&quot;&#039;ir.actions.server,&#039; + str(ref(&#039;action_sale_order_confirm_sales&#039;))&quot;/&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;key&quot;&gt;action&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;model_id&quot; ref=&quot;model_sale_order&quot;/&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;model&quot;&gt;sale.order&lt;/field&gt;<br />&nbsp; &nbsp; &lt;field name=&quot;key2&quot;&gt;client_action_multi&lt;/field&gt;<br />&lt;/record&gt;
    



    其中action_button_confirm就是确认订单的代码,它在saly.py,类sale_order里面...其实还有一些不是很明白,比如

    &lt;field name=&quot;model_id&quot; ref=&quot;model_sale_order&quot;/&gt;
    

    这一个,为什么它会知道是在saly.py里面?还有就是

    &lt;field name=&quot;model&quot;&gt;sale.order&lt;/field&gt;
    

    这一行和上一行有什么区别。。至于

    &nbsp;  &lt;field name=&quot;key2&quot;&gt;client_action_multi&lt;/field&gt;
    

    我猜应该就是添加到更多里面。。。总之还有一些不明白的地方,不过我想再经过一些摸索应该会慢慢明白。

    PS:大家有问题可以到http://help.openerp.com/questions/这里提问。。。。我就是在这里问的。。


  • 如何 根据 menuitem id 修改 sequence
    K K_Go

    sequence 是个整数类型,用于为菜单项中的菜单排序。更高的sequence number在菜单项的更下面。这个字段不是必须的:如果sequence没有指定值,菜单项将会得到一个默认的数值10。有相同数值的菜单项按照创建顺序来排序(_order = “sequence,id“)。....

  • 登录

  • 没有帐号? 注册

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