Remove field description column and move it to title

pull/1801/head
Akim Juillerat 2019-08-14 15:48:47 +02:00 committed by fshah
parent a48c11bd6e
commit 9191903bcc
2 changed files with 2 additions and 7 deletions

View File

@ -23,8 +23,9 @@ var Mutex = concurrency.Mutex;
var translateDialog = Dialog.extend({ var translateDialog = Dialog.extend({
template: "TranslateDialog", template: "TranslateDialog",
init: function(parent, options) { init: function(parent, options) {
var title_string = _t("Translate field: /")
this._super(parent, this._super(parent,
{title: _t("Translations"), size: 'x-large'}); {title: title_string.replace('/', options.field.fieldName) , size: 'x-large'});
this.view_language = session.user_context.lang; this.view_language = session.user_context.lang;
this.view = parent; this.view = parent;
this.view_type = parent.viewType || ''; this.view_type = parent.viewType || '';

View File

@ -10,9 +10,6 @@
class="oe_frame oe_forms oe_translation_form" class="oe_frame oe_forms oe_translation_form"
border="0" cellpadding="0" cellspacing="0" width="100%"> border="0" cellpadding="0" cellspacing="0" width="100%">
<tr> <tr>
<th class="oe_form_separator" width="1%" nowrap="nowrap">
<div class="separator horizontal">Field</div>
</th>
<th t-foreach="widget.languages" align="left"> <th t-foreach="widget.languages" align="left">
<div class="separator horizontal"><t t-esc="name"/></div> <div class="separator horizontal"><t t-esc="name"/></div>
</th> </th>
@ -20,9 +17,6 @@
<t t-value="widget.translatable_field" t-set="field_name" /> <t t-value="widget.translatable_field" t-set="field_name" />
<t t-set="field" t-value="widget.view.searchView.fields[field_name]" /> <t t-set="field" t-value="widget.view.searchView.fields[field_name]" />
<tr t-att-data-field="field_name"> <tr t-att-data-field="field_name">
<td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
<label class="oe_label"><t t-esc="field.string"/>:</label>
</td>
<td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell"> <td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
<input t-if="['char','url'].indexOf(field.type) !== -1" <input t-if="['char','url'].indexOf(field.type) !== -1"
type="text" t-attf-name="#{lg.code}-#{field_name}" type="text" t-attf-name="#{lg.code}-#{field_name}"