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账号

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

    Odoo8 中创建询价单指定供应商之后,添加产品的时候怎样做联动

    Odoo 开发与实施交流
    4
    5
    2366
    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.
    • S
      speed099 last edited by

      odoo8 中创建询价单指定供应商之后,添加产品的时候,产品列表是系统所有的可以采购的商品。 因为每个可以采购的商品已经配置了对应的供应商,所以在选择供应商之后最好能够联动到该供应商提供的产品列表。 在产品列做了一个过滤,但是不生效。
      <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,0,False,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,False,False,parent.state,context)" [color=red]domain="[('seller_ids.name','child_of',parent.partner_id.id)][/color]"/>

      红色部分为新增的,没有效果,请高手指导一下,谢谢!

      1 Reply Last reply Reply Quote 0
      • 天
        天津-随风 last edited by

        你好像就差了一点点了。。试试这样domain="[('seller_ids.name','child_of',parent.partner_id)]"

        1 Reply Last reply Reply Quote 0
        • Joshua
          Joshua 管理员 last edited by

          可以参考下这个模块: [检测到链接无效,已移除]

          1 Reply Last reply Reply Quote 0
          • 1
            149145776qq.com last edited by

            赞,思路不错。

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