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

J

jundi1000

@jundi1000
关于
帖子
17
主题
9
群组
0
粉丝
0
关注
0

帖子

最新 最佳 有争议的

  • Rml报表打印出来的时间慢了8小时
    J jundi1000

    [quote author=Joshua link=topic=16398.msg28072#msg28072 date=1401086770]
    谢谢提醒,开始没有看清楚,formatLang只接受默认的日期时间格式 '%Y-%m-%d %H:%M:%S',然后再根据你的语言来输出对应的日期格式,所以应该是:

    [[formatLang(time.strftime('%Y-%m-%d %H:%M:%S'), date_time=True)]]
    


    [/quote]

    好的,原来是格式的问题啊,现在问题解决了,谢谢啦。


  • 请问下rml报表的默认字体应该在哪里设置呢?
    J jundi1000

    请问下rml报表的默认字体应该在哪里设置呢?

    怎么我使用oecn_base_fonts模块来做更改的话,每次重启server后,又要设置过才能显示我要的字体呢?
    有什么方法可以使每次重启后,就不用再设置过了


  • Rml报表打印出来的时间慢了8小时
    J jundi1000

    [quote author=Joshua link=topic=16398.msg28054#msg28054 date=1400664076]
    odoo已经帮我们想好办法了:
    report_sxw.py

    &nbsp; &nbsp; <br />def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False, dp=False, currency_obj=False):<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Assuming &#039;Account&#039; decimal.precision=3:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formatLang(value) -&gt; digits=2 (default)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formatLang(value, digits=4) -&gt; digits=4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formatLang(value, dp=&#039;Account&#039;) -&gt; digits=3<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; formatLang(value, digits=5, dp=&#039;Account&#039;) -&gt; digits=5<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;&quot;<br />
    

    ``` [[formatLang(time.strftime('%d-%m-%Y %H:%M:%S'), date_time=True)]] ```
    [/quote]

    我在把[[formatLang(time.strftime('%d-%m-%Y %H:%M:%S'), date_time=True)]]放在rml里怎么显示不出时间呢?

  • Rml报表打印出来的时间慢了8小时
    J jundi1000

    rml里[[time.strftime('%d-%m-%Y %H:%M:%S')]]
    显示的时间慢了8个小时,有什么方法可以解决这个问题呢?
    openerp是装在CentOS上的。


  • 怎样复制被取消了的报价单的号码?
    J jundi1000

    谢谢总监的解答,感谢 :)。


  • 怎样复制被取消了的报价单的号码?
    J jundi1000

    [img http://i.imgur.com/VYQiRtM.png /img]
    要怎样实现当我按了复制报价单的按钮,就会复制那报价单的号码呢?

    [img http://i.imgur.com/6OuQb6V.png /img]
    在这个copy of后面我应该怎么写呢?


  • 已解决!
    J jundi1000

    @digitalsatori 解决了,谢谢你的指导。

    好的,我才刚接触Openerp不久而已,在学习中,界面开发工具的修改还真的有局限性,我也慢慢在学习着模块开发了。


  • 已解决!
    J jundi1000

    首先我在报价单菜单那边选择了Edit Action
    [img http://i.imgur.com/OkSnTU9.png /img]

    本来
    [img http://i.imgur.com/hzZ0BNi.png /img]

    过后我选择了Inline Edit
    [img http://i.imgur.com/j7BHoXE.png /img]

    最后就变成这样了,点了进去一直处在编辑状态 = =
    [img http://i.imgur.com/uLC4DKs.png /img]

    看下图
    [img http://i.imgur.com/VuRUJwl.png /img]


    [size=14pt]因为现在没有调试的那一栏出现了(看图4),要去哪里才可以还原回去如图2那样可以选择回去Current Window呢?
    求大神们搭救一下我.[/size]


  • Selection字段要怎样对不同用户显示不同的读取权限?
    J jundi1000

    selection字段要怎样对不同用户显示不同的读取权限?

    我想要该selection字段,当经理登录时,该字段是可以选择的,而当销售员登录时该字段是只读(不能更改)。


  • 怎样在工作流里,在某个状态时编辑按钮不显示呢?
    J jundi1000

    [img http://i.imgur.com/uaAqLMF.png /img]
    要怎样在工作流里,当状态处于sent时,edit按钮就不显示呢?目的是不让用户再更改报价表。


  • 怎样设置默认值
    J jundi1000

    [img http://i.imgur.com/aaLCNUg.png /img]
    我已经设置默认值了

    [img http://i.imgur.com/3rOEP4A.png /img]
    当我创建报价表还没选客户是,默认值是正常现实的

    [img http://i.imgur.com/Trjf01N.png /img]
    不过,当我选择了任意一个客户后,默认值就不见了

    有没有人也试过这样的问题呢?
    有什么方法可以实现选着任意一个客户后,默认值还是一样的显示呢?


  • 工作流的条件判断去向,该判断条件应该怎么设置呢?
    J jundi1000

    [quote author=digitalsatori link=topic=16355.msg27921#msg27921 date=1398306437]

    def product_discount(self, cr, uid, ids, context=None):<br />&nbsp; &nbsp; context = context or {}<br />&nbsp; &nbsp; for so in self.browse(cr, uid, ids, context=context):<br />&nbsp; &nbsp; &nbsp; &nbsp; return any(sol.price_uinit &lt; sol.product_id.list_price for sol in so.order_line)<br />&nbsp; &nbsp;  <br />
    


    需要继承sale.order 对象,定义上述方法。并在workflow的condition中将price_unit<list_price改为[tt]product_dicount()[/tt], 将price_unit>list_price改为:[tt]not product_discount()[/tt]
    代码没有经过测试,仅供参考。
    [/quote]

    @digitalsatori 你提供的代码经过测试是可行的,谢谢啦。 🙂


  • Rml报表里的物品号码怎样自动递增?
    J jundi1000

    [quote author=Micky link=topic=16344.msg27932#msg27932 date=1398416188]
    测试了下,在打第二张单子的时候,会接着第一张单子不断累加前面的数字,如何把这种累加去掉呢?值做单张打印单上产品的累加
    [/quote]


    记得设置seqReset,看下下面的代码,切记把reset放在</blockTable>后面

    <br />&lt;/blockTable&gt;<br />&lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;para&gt;&lt;seqReset id=&quot;L1&quot;/&gt;&lt;/para&gt;<br />&lt;/td&gt;
    

  • 工作流的条件判断去向,该判断条件应该怎么设置呢?
    J jundi1000

    好的,我试试看先


  • 工作流的条件判断去向,该判断条件应该怎么设置呢?
    J jundi1000

    @digitalsatori 那该函数该怎么写呢?希望能指点下我。谢谢


  • 工作流的条件判断去向,该判断条件应该怎么设置呢?
    J jundi1000

    我的工作流:
    [img http://i.imgur.com/IngqTao.png /img]

    在trans里该怎么设置呢,把条件放在condition,是对的吗?然后price_unit和list_price前面需要加什么吗?例如:product_id.list_price之类的。
    [img http://i.imgur.com/zhTrZdL.png /img]

    price_unit
    [img http://i.imgur.com/soFNLHm.png /img]

    list_price
    [img http://i.imgur.com/qLCnVXQ.png /img]


  • Rml报表里的物品号码怎样自动递增?
    J jundi1000
    &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;para&gt;&lt;seq id=&quot;L1&quot;/&gt;&lt;/para&gt;<br />&lt;/td&gt;
    


    [size=10pt]把上面的代码放在表格里

    把下面的代码放到[color=red]</blockTable>[/color]之后[/size]

    &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;para&gt;&lt;seqReset id=&quot;L1&quot;/&gt;&lt;/para&gt;<br />&lt;/td&gt;
    


    [img http://i.imgur.com/1rSdwrc.png /img]

  • 登录

  • 没有帐号? 注册

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