[FIX] base: fix create contact view
Before commit[1] there was only one field image_1920 in group with 'colspan=1'.
In commit[1] a new invisible field avatar_128 is added in this group. But due
to this an empty 'tr' element is added in view and it breaks the view.
With this commit we move avatar_128 field outside of the group and placed it
with other invisible fields, so it doesn't break view. And also adding comment
field in new group because it is html field now so it displays nicely.
Followup of odoo/odoo@cb4f597410 and odoo/enterprise@971f3ed9ae
commit[1]: c53724ebc3
LINKS
Task Id-2558824
PR odoo/odoo#74795
PR odoo/enterprise#2011
This commit is contained in:
committed by
Thibault Delavallée
parent
4cc4ee8919
commit
c1e0acf4c6
@@ -318,7 +318,6 @@
|
||||
<field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/>
|
||||
</div>
|
||||
</div>
|
||||
<field name="comment" placeholder="Internal notes..."/>
|
||||
</group>
|
||||
<group colspan="5">
|
||||
<field name="email" widget="email"/>
|
||||
@@ -327,13 +326,16 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
</group>
|
||||
<group colspan="1">
|
||||
<field name="avatar_128" invisible="1"/>
|
||||
<field name="image_1920" widget="image" class="oe_avatar" nolabel="1" options="{'image_preview': 'avatar_128'}"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="comment" placeholder="Internal notes..."/>
|
||||
</group>
|
||||
<field name="lang" invisible="True"/>
|
||||
<field name="user_id" invisible="True"/>
|
||||
<field name="image_128" invisible="1"/>
|
||||
<field name="avatar_128" invisible="1"/>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user