Note that there are some explanatory texts on larger screens.

plurals
  1. POinherited view arrangement not working
    primarykey
    data
    text
    <p>I have 2 custom modules "notebook" and "bpc" in which notebook.notebook_form_view is referenced to bpc_form_view.</p> <p>In notebook module, lets say we have 3 fields :</p> <pre><code> 'title' : fields.char('Title', size=30, required=True), 'note' : fields.text('Note'), 'note_date' : fields.date('Date'), </code></pre> <p>In bpc module, I need to add 2 fields and the inherited fields.</p> <pre><code> 'before' : fields.text('before'), 'after': fields.text('after'), </code></pre> <p>in my notebook_form_view:</p> <pre><code>&lt;record model="ir.ui.view" id="notebook_form_view"&gt; &lt;field name="name"&gt;notebook.form&lt;/field&gt; &lt;field name="model"&gt;notebook&lt;/field&gt; &lt;field name="type"&gt;form&lt;/field&gt; &lt;field name="arch" type="xml"&gt; &lt;form string="Notebook"&gt; &lt;field name="title"/&gt; &lt;field name="note"/&gt; &lt;field name="note_date"/&gt; &lt;/form&gt; &lt;/field&gt; &lt;/record&gt; </code></pre> <p>in my bpc_form_view:</p> <pre><code>&lt;record model="ir.ui.view" id="bpc_form_view"&gt; &lt;field name="name"&gt;bpc.form&lt;/field&gt; &lt;field name="model"&gt;bpc&lt;/field&gt; &lt;field name="inherit_id" ref="notebook.notebook_form_view"&gt;form &lt;/field&gt; &lt;field name="arch" type="xml"&gt; &lt;field name="note" position="before"&gt; &lt;field name="before" /&gt; &lt;/field&gt; &lt;field name="note_date" position="after"&gt; &lt;field name="after" /&gt; &lt;/field&gt; &lt;/field&gt; &lt;/record&gt; </code></pre> <p><strong>Output sequence regarding the notebook_form_view is:</strong></p> <pre><code> title note Date </code></pre> <p><strong>Output regarding the inherited view in bpc_form_view is in the sequence:</strong></p> <pre><code> Note before after Date Title </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload