我想在res_config_settings_view_form的表单视图中添加一个文件(基本上在po_order_approval字段之后),我在xml字段上尝试了此代码
<record id="view_res_config_tech_inherit" model="ir.ui.view">
<field name="name">tech.config.form.inherit</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@class='o_setting_right_pane']" position="before">
<div class="row mt16">
<field name="first_ki"/>
</div>
</xpath>
并在我的.py文件中
class purchase(models.TransientModel):
_inherit = "res.config.settings"
first_ki = fields.Monetary('Ki')
但是我无法显示该字段