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

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 新手求助
  4. odoo如何查询多个表

odoo如何查询多个表

Scheduled Pinned Locked Moved Odoo 新手求助
1 Posts 1 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eric2017
    wrote on last edited by
    #1

    在odoo10中,如何查询多个表?
    例如:表A,表B两个表。B是A的明细,A中的字段:
    a1=fields.Many2one(....)
    a2=...
    a2b=fields.One2many(B的_name,'a_id')
    B中的字段:
    a_id=fields.Many2one(A的_name)
    b1=fields.Many2one(....)
    b2=...
    b3=...
    要以a1与b1为条件查询a2、b2与b3,如何写?

    1 Reply Last reply
    0

    • Login

    • Don't have an account? Register

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