2
行動我想繼承以下行動從基地,改變的view_id。Odoo - 繼承基礎模塊
<record id="account.action_account_payments" model="ir.actions.act_window">
<field name="name">Payments</field>
<field name="res_model">account.payment</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
<field name="context">{'default_payment_type': 'inbound'}</field>
<field name="domain">[('partner_type', '=', 'customer')]</field>
<field name="view_id" ref="view_account_payment_tree"/>
</record>
下面的代碼是正確的方法嗎?它是否繼承或覆蓋了該操作?我只想繼承該操作並更改view_id並在點擊按鈕中調用它。
<record id="module_name.record_id" model="record_model">
<field name="name">New record name</field>
</record>