Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    GTK, Tree view, Group By 中文字变成方框的问题

    Odoo 开发与实施交流
    9
    13
    13433
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 随
      随风 last edited by

      C:\workspace\openerp-client-6.0.2\bin\widget\view\tree_gtk\parser.py, 这个文件里删除两句关于字体的hardcode就OK了
      line 299, line 302
      然后重新编译客户端, 即可解决这个问题

      1 Reply Last reply Reply Quote 0
      • mrshelly
        mrshelly last edited by

        Woooooooooooow..........
        谢谢谢谢....

        记得为贴子添加个标签...

        1 Reply Last reply Reply Quote 0
        • mrshelly
          mrshelly last edited by

          经测试 成功... 再次感谢...
          可以用我提到的 zip 文件替换大法 可以免去编译的麻烦...

          1 Reply Last reply Reply Quote 0
          • mrshelly
            mrshelly last edited by

            <br />...<br />297&nbsp; &nbsp; &nbsp; &nbsp; if isinstance(model, group_record) and gb:<br />298&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cell.set_property(&#039;foreground&#039;, &#039;black&#039;)<br />299&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #font = pango.FontDescription(&#039;Times New Roman bold 10&#039;)<br />300&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if self.field_name in model.field_with_empty_labels:<br />301&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cell.set_property(&#039;foreground&#039;, &#039;#AAAAAA&#039;)<br />302&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #font = pango.FontDescription(&#039;italic 10&#039;)<br />303&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cell.set_property(&#039;font-desc&#039;, font)<br />....<br />
            
            1 Reply Last reply Reply Quote 0
            • L
              lindongy last edited by

              你用的是那个版本的?我在ubuntu 11.04下用6.0.2,貌似不存在这个问题额,没改也是正常的。

              1 Reply Last reply Reply Quote 0
              • wjfonhand
                wjfonhand last edited by

                https://bugs.launchpad.net/openobject-client/+bug/799818

                bug已提交到官方,让我们看看进度

                1 Reply Last reply Reply Quote 0
                • H
                  hifly last edited by

                  测试通过,问题解决,感谢楼上诸位努力

                  官方的进度还没有啊...

                  1 Reply Last reply Reply Quote 0
                  • T
                    tasso last edited by

                    [quote author=mrshelly link=topic=2474.msg8200#msg8200 date=1308611682]
                    经测试 成功... 再次感谢...
                    可以用我提到的 zip 文件替换大法 可以免去编译的麻烦...
                    [/quote]

                    这个怎么操作。。

                    1 Reply Last reply Reply Quote 0
                    • L
                      lky last edited by

                      将附件parse.pyo放到GTK安装目录下的library.zip文件中widget\view\tree_gtk\parser.pyo, 即替换.(用winrar或zip打开)

                      1 Reply Last reply Reply Quote 0
                      • D
                        digitalwow last edited by

                        [quote author=随风 link=topic=2474.msg8197#msg8197 date=1308587584]
                        C:\workspace\openerp-client-6.0.2\bin\widget\view\tree_gtk\parser.py, 这个文件里删除两句关于字体的hardcode就OK了
                        line 299, line 302
                        然后重新编译客户端, 即可解决这个问题
                        [/quote]

                        我是用 6.0.3 版. 安裝在 win 7 上..似乎沒發現這目錄及檔案啊...?

                        1 Reply Last reply Reply Quote 0
                        • F
                          flyflywind last edited by

                          [quote author=digitalwow link=topic=2474.msg9160#msg9160 date=1325646963]
                          [quote author=随风 link=topic=2474.msg8197#msg8197 date=1308587584]
                          C:\workspace\openerp-client-6.0.2\bin\widget\view\tree_gtk\parser.py, 这个文件里删除两句关于字体的hardcode就OK了
                          line 299, line 302
                          然后重新编译客户端, 即可解决这个问题
                          [/quote]

                          我是用 6.0.3 版. 安裝在 win 7 上..似乎沒發現這目錄及檔案啊...?
                          [/quote]
                          说的是源码,不是安装目录。

                          1 Reply Last reply Reply Quote 0
                          • D
                            digitalwow last edited by

                            所以用All-in-one 在 window 中安裝的 openerp 是不無法修正的是嗎?
                            因為類似都東西..我都找不到修改的檔案啊..

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post