Files
odoo_source/addons/survey/views/gamification_badge_views.xml
T
Michael Mattiello (mcm) 785b304876 [IMP] *: reduce shift in form views (xml)
* account, analytic, calendar, coupon, crm, crm_iap_lead_website,
  delivery, digest, event, event_crm, fleet, gamification, hr,
  hr_expense, hr_skills, im_livechat, lunch, mail, maintenance,
  mass_mailing, membership, mrp, point_of_sale, pos_mercury, product,
  purchase, purchase_requisition, sale_management, sales_team, sms,
  stock, stock_landed_costs, survey, website_crm_partner_assign,
  website_event_exhibitor, website_event_track, website_forum,
  website_slides, base

This commit removes oe_edit_only labels and adds placeholder
on fields in form views from a lot of apps to minimize the
shift when switching mode.

task 2330101
2021-02-02 12:40:22 +00:00

29 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo><data>
<record id="gamification_badge_form_view_simplified" model="ir.ui.view">
<field name="name">gamification.badge.form.view.simplified</field>
<field name="model">gamification.badge</field>
<field name="priority">100</field>
<field name="arch" type="xml">
<form string="Badge">
<sheet>
<div class="oe_button_box" name="button_box"/>
<field name="image_1920" widget="image" class="oe_avatar" options="{'preview_image': 'image_128'}"/>
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" placeholder="e.g. Problem Solver"/>
</h1>
</div>
<group>
<field name="description" nolabel="1" placeholder="e.g. No one can solve challenges like you do"/>
</group>
<group string="Rewards for challenges">
<field name="level"/>
</group>
</sheet>
</form>
</field>
</record>
</data></odoo>