mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 02:48:41 -06:00
[document_page_approval] Some fields should be readonly if not in draft.
This commit is contained in:
parent
ff803f179d
commit
53f6684c46
@ -36,9 +36,12 @@
|
|||||||
<field name="approved_date" readonly="1" attrs="{'invisible':[('state','not in',['approved'])]}"/>
|
<field name="approved_date" readonly="1" attrs="{'invisible':[('state','not in',['approved'])]}"/>
|
||||||
</group>
|
</group>
|
||||||
</xpath>
|
</xpath>
|
||||||
<field name="content" position="attributes">
|
<!-- Readonly fields -->
|
||||||
<attribute name="attrs">{'readonly': [('state', 'not in', ['draft'])]}</attribute>
|
<field name="content" position="attributes"><attribute name="attrs">{'readonly': [('state', 'not in', ['draft'])]}</attribute></field>
|
||||||
</field>
|
<field name="page_id" position="attributes"><attribute name="attrs">{'readonly': [('state', 'not in', ['draft'])]}</attribute></field>
|
||||||
|
<field name="name" position="attributes"><attribute name="attrs">{'readonly': [('state', 'not in', ['draft'])]}</attribute></field>
|
||||||
|
<field name="summary" position="attributes"><attribute name="attrs">{'readonly': [('state', 'not in', ['draft'])]}</attribute></field>
|
||||||
|
<!-- Chatter -->
|
||||||
<sheet position="after">
|
<sheet position="after">
|
||||||
<div class="oe_chatter">
|
<div class="oe_chatter">
|
||||||
<field name="message_follower_ids" widget="mail_followers"/>
|
<field name="message_follower_ids" widget="mail_followers"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user