This commit is contained in:
李鹏宇
2026-03-11 18:53:08 +08:00
parent ebd087a26c
commit 5696dae2fb
3 changed files with 7 additions and 1 deletions
@@ -100,6 +100,7 @@ def ks_read(self, records):
sql = comodel._order_to_sql(None, wquery)
order_by_clause = comodel.env.cr.mogrify(sql).decode()
order_by = order_by_clause and (' ORDER BY %s ' % order_by_clause) or ''
order_by = '' # 临时修复:跳过排序
from_c, where_c, where_params = wquery.get_sql()
query = """ SELECT {rel}.{id1}, {rel}.{id2} FROM {rel}, {from_c}
WHERE {where_c} AND {rel}.{id1} IN %s AND {rel}.{id2} = {tbl}.id
@@ -82,7 +82,7 @@
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='department_id']" position="after">
<!-- <field name="allowed_user_ids" invisible="1"/>-->
<field name="allowed_user_ids" invisible="1"/>
<field name="number"/>
<field name="establishment_quotas"/>
<field name="no_of_employee" string="在编人数"/>
+5
View File
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- 继承并修改 maintenance.hr_equipment_action 的名称 -->
<record id="maintenance.hr_equipment_action" model="ir.actions.act_window">
<field name="name">固定资产</field>
</record>
<menuitem id="purchase_assets_equipment_root"
name="固定资产"
parent="stock.menu_stock_inventory_control"