Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 开发与实施交流
  4. 新员工技术培训后提出的问题,请大牛帮忙测试并解疑

新员工技术培训后提出的问题,请大牛帮忙测试并解疑

Scheduled Pinned Locked Moved Odoo 开发与实施交流
8 Posts 5 Posters 9.1k Views 1 Watching
  • 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.
  • W Offline
    W Offline
    wjfonhand
    wrote on last edited by
    #1

    selection_add 好用么

    po文件的翻译机制

    xpath的语法
    [color=red http://www.w3school.com.cn/xpath/xpath_syntax.asp /color]

    attributes这个position怎么用的

    write时字段名写错是否报错,返回值是什么

    search的count为true,返回值是什么
    [color=red]数字而非列表[/color]

    browse的list_class和fields_process参数是什么意思

    如果xml和py都写了domain且不冲突,是什么效果

    calendar里可以用button么

    many2many写数方法0第二个0是什么意思

    xmlrpclib除了object还有哪些

    onchange返回值除了value之外,domain和warning是什么样的

    GoodERP -- Odoo China fork

    1 Reply Last reply
    0
    • C Offline
      C Offline
      codefans
      wrote on last edited by
      #2

      xpath 语法 :http://www.w3school.com.cn/xpath/xpath_syntax.asp
                    https://doc.odoo.com/6.0/developer/2_6_views_events/views/view_inheritence/

      1 Reply Last reply
      0
      • D Offline
        D Offline
        digitalsatori
        管理员
        wrote on last edited by
        #3

        新语法里有 selection_add 啊,没注意到。这个不错。
        现在我们的Selection字段定义时都是放一个‘方法’,而不是列表,这样以后对Selection字段的扩展就继承方法就可以了
        selection_add好象更方便。

        【上海先安科技】(tony AT openerp.cn)

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wjfonhand
          wrote on last edited by
          #4

          [quote author=codefans link=topic=17093.msg30289#msg30289 date=1430362780]
          xpath 语法 :http://www.w3school.com.cn/xpath/xpath_syntax.asp
                        https://doc.odoo.com/6.0/developer/2_6_views_events/views/view_inheritence/ br />[/quote]

          十分感谢,w3schooil这个网站非常好

          GoodERP -- Odoo China fork

          1 Reply Last reply
          0
          • W Offline
            W Offline
            wjfonhand
            wrote on last edited by
            #5

            [quote author=digitalsatori link=topic=17093.msg30292#msg30292 date=1430542397]
            新语法里有 selection_add 啊,没注意到。这个不错。
            现在我们的Selection字段定义时都是放一个‘方法’,而不是列表,这样以后对Selection字段的扩展就继承方法就可以了
            selection_add好象更方便。
            [/quote]

            去年9月份新api刚出来的时候我试过,其实不行的。
            后来看addons里的代码,他们只在单元测试里写过,怀疑用这个的前提是 被继承的字段声明时用的是 fields.Selection方法(不用_columns),旧api用fields.selection方法声明的字段貌似不能如此继承。还未测试

            GoodERP -- Odoo China fork

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Lown
              wrote on last edited by
              #6

              [quote author=Jeff link=topic=17093.msg30294#msg30294 date=1430565112]
              [quote author=digitalsatori link=topic=17093.msg30292#msg30292 date=1430542397]
              新语法里有 selection_add 啊,没注意到。这个不错。
              现在我们的Selection字段定义时都是放一个‘方法’,而不是列表,这样以后对Selection字段的扩展就继承方法就可以了
              selection_add好象更方便。
              [/quote]

              去年9月份新api刚出来的时候我试过,其实不行的。
              后来看addons里的代码,他们只在单元测试里写过,怀疑用这个的前提是 被继承的字段声明时用的是 fields.Selection方法(不用_columns),旧api用fields.selection方法声明的字段貌似不能如此继承。还未测试
              [/quote]
              如果选项集是在字段本身设置的,selection_add有效,如果选项集是通过方法取值的,selection_add用了在操作的时候会报错。(新旧api一样的)

              另外xml中的domain是对py中domain筛选结果的二次筛选。
              (抱歉,实际测试后不是这样的。而是这样,如果同时存在domain是只按xml中的domain进行筛选的)
              write时字段名写错不会报错,返回值是True。

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mrshelly
                wrote on last edited by
                #7

                我感觉 v9 没有 release 之前,  new api 都是个笑话.....

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Tags
                • Popular
                • Users
                • Groups