summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormreficent <miquel.raich@eficent.com>2018-11-05 11:21:44 +0000
committerfw-bot <otis@odoo.com>2019-10-03 17:58:01 +0000
commitcb4d5fbb0192a661719320b5178beefffa16c746 (patch)
treefdbf4f1cf212e1cf2b5c6121e37f6c2a4e8786ea
parent51c58782db4a4d4676351c1209052de7359ed18b (diff)
[FIX] base: fix display of creation info in form view
Currently when creating an attachment in backend, history section holds a "Creation: on" void line that is populated after create with "creation: administator on 2019..." . This is quite ugly and not usability oriented. Let us hide the history line while create information are not set, aka before first save of record. closes odoo/odoo#37940 X-original-commit: 9ef4cb3ada349b34ba8a5daa5ca9f9765bc43437 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
-rw-r--r--odoo/addons/base/views/ir_attachment_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/views/ir_attachment_views.xml b/odoo/addons/base/views/ir_attachment_views.xml
index 5b6b005084d..98582a7aee1 100644
--- a/odoo/addons/base/views/ir_attachment_views.xml
+++ b/odoo/addons/base/views/ir_attachment_views.xml
@@ -25,7 +25,7 @@
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
<field name="public"/>
</group>
- <group string="History" groups="base.group_no_one">
+ <group string="History" groups="base.group_no_one" attrs="{'invisible':[('create_date','=',False)]}">
<label for="create_uid" string="Creation"/>
<div name="creation_div">
<field name="create_uid" readonly="1" class="oe_inline"/> on