Skip to content

Commit

Permalink
[FIX] base: fix display of creation info in form view
Browse files Browse the repository at this point in the history
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#37940

X-original-commit: 9ef4cb3
Signed-off-by: Thibault Delavallee (tde) <[email protected]>
  • Loading branch information
MiquelRForgeFlow authored and fw-bot committed Oct 3, 2019
1 parent 51c5878 commit cb4d5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/addons/base/views/ir_attachment_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb4d5fb

Please sign in to comment.