mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
[IMP] document_page_reference: auto-fill reference when not supplied.
also, make reference optional in tree view and not the first field.
This commit is contained in:
@@ -9,7 +9,10 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//h1" position="before">
|
||||
<h2>
|
||||
<field name="reference" placeholder="internal_reference" />
|
||||
<field
|
||||
name="reference"
|
||||
placeholder="internal_reference (autofilled if not value is provided)"
|
||||
/>
|
||||
</h2>
|
||||
</xpath>
|
||||
<field name="content" position="attributes">
|
||||
@@ -56,8 +59,8 @@
|
||||
<field name="model">document.page</field>
|
||||
<field name="inherit_id" ref="document_page.view_wiki_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="reference" />
|
||||
<field name="name" position="after">
|
||||
<field name="reference" optional="hidden" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user