Skip to Content
Menu
This question has been flagged
1035 Views

This is the account.invoice_form from a custom module.


I want to inherit In a new view everything except what is contained in the 

Mediswitch_integration.inherit_invoice_form_1 as I do not want the new view to include fields added in that view, because it is part of a module that I do not want my new view to depend on


I have tried 

<record id="account_invoice_cash_sales" model="ir.ui.view">
<field name="name">Cash Sale</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">

but the new view account_invoice_cash_sales still include all fields



ID

SequenceView NameExternal ID
1,47316account.invoice.form.customeraccount_accountant.account_invoice_view_form_customer
1,55516account.invoice.view.form.inherit.paymentpayment.account_invoice_view_form_inherit_payment
1,65416account.invoice.formaccount_deferred_revenue.view_invoice_revenue_recognition_category
1,76616Account Invoicesale.account_invoice_form
1,85916account.invoice.form.sale.stocksale_stock.invoice_form_inherit_sale_stock
1,87716account.invoice.formwebsite_sale.account_invoice_view_form
1,98416account.invoice.form.inherit.timesheetsale_timesheet.account_invoice_view_form_inherit_sale_timesheet
3,59516invoice.form.cancel.inheritaccount_cancel.invoice_form_cancel_inherit
3,90816Customer InvoiceTOMS.inherit_invoice_form
3,98516Customer Invoicemediswitch_integration.inherit_invoice_form_mediswitch_1
4,02116Move Nameinvoice_stock_move.customer_invoice_stock_move_view








Avatar
Discard