添加功能

This commit is contained in:
李鹏宇
2026-09-02 10:58:51 +08:00
parent fa55172040
commit d1e0fcbb10
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -41,6 +41,7 @@
'wizard/medical_manage_wizard_viwes.xml',
'wizard/reset_password_wizard_viwes.xml',
'views/yuthon_hr_task_views.xml',
'views/res_company_views.xml',
],
'assets': {
'web.assets_backend': [
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="yuthon_hr_employee_view_company_form" model="ir.ui.view">
<field name="name">yuthon.hr.employee.res.company.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<!-- 确保分公司名称字段在标签点击弹窗场景下始终可编辑 -->
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="readonly">0</attribute>
<attribute name="invisible">0</attribute>
</xpath>
</field>
</record>
</odoo>