[IMP] base: better default for translation overwrite
Following 43d355c208, same logic
Hide it but make it checked by default
closes odoo/odoo#35819
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
@@ -25,6 +25,7 @@ class BaseLanguageInstall(models.TransientModel):
|
||||
lang = fields.Selection(_get_languages, string='Language', required=True,
|
||||
default=_default_language)
|
||||
overwrite = fields.Boolean('Overwrite Existing Terms',
|
||||
default=True,
|
||||
help="If you check this box, your customized translations will be overwritten and replaced by the official ones.")
|
||||
state = fields.Selection([('init', 'init'), ('done', 'done')],
|
||||
string='Status', readonly=True, default='init')
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<field name="state" invisible="1"/>
|
||||
<group states="init">
|
||||
<field name="lang"/>
|
||||
<field name="overwrite"/>
|
||||
<field name="overwrite" groups="base.group_no_one"/>
|
||||
</group>
|
||||
<group states="done" colspan="4">
|
||||
<span class="o_form_label">The selected language has been successfully installed.
|
||||
|
||||
Reference in New Issue
Block a user