Odoo ERP 数据库中的 parent_left 和 parent_right 列是什么?
What is parent_left and parent_right columns on Odoo ERP database?
有谁知道Odoo ERP数据库中parent_left或parent_right列的用途是什么?如我所见,已经有 parent_id 列有用。我没有看到 parent_left 或 parent_right 的用法。您可以使用以下查询查看它们。
select * 来自 stock_location;
select * 来自 account_account
谢谢
The parent_left and parent_right are 2 special fields that are related
to the parent_id field. The purpose of those fields is to make queries
within the hierarchy execute efficiently: with parent_left and
parent_right, you can retrieve all the descendants of a node without
making recursive queries.
你必须参考这个link:https://answers.launchpad.net/openobject-server/+question/186704
有谁知道Odoo ERP数据库中parent_left或parent_right列的用途是什么?如我所见,已经有 parent_id 列有用。我没有看到 parent_left 或 parent_right 的用法。您可以使用以下查询查看它们。
select * 来自 stock_location; select * 来自 account_account
谢谢
The parent_left and parent_right are 2 special fields that are related to the parent_id field. The purpose of those fields is to make queries within the hierarchy execute efficiently: with parent_left and parent_right, you can retrieve all the descendants of a node without making recursive queries.
你必须参考这个link:https://answers.launchpad.net/openobject-server/+question/186704