Repository
OCA/server-backend · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-backend
Last tracking update
2026-08-07 07:32:01
Authors
Odoo Community Association (OCA), Le Filament, Mariano Ruiz
Maintainers
Odoo Community Association (OCA), Le Filament, Mariano Ruiz
Committers
remi-filament, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_lang_default_form res.lang.default.form res.lang form Inherits base.res_lang_form
res_lang_default_tree res.lang.default.tree res.lang tree Inherits base.res_lang_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • write(self, vals)
    @api.multi
    This part of code comes from https://bazaar.launchpad.net/~eoc/openobject-server/ + 6.1-overwrite_changes_translatable_fields/revision/4377 When the main language in the company is not English, you cannot change the value of a translatable field in the table if you not switch the client interface to 'en_US', because the new value will be written to ir_translation table instead of the table model. This complicates usability, and the default language for "model" values hardcoded as 'en_US' should be configurable (see https://bugs.launchpad.net/openobject-server/+bug/400256). With this patch, all changes made in selected default language will be written in 'en_US' too (in the table model) if : - vals are modified (it is later checked if vals are on translatable fields) - more than one language is installed - default language is set - current language = default language and not 'en_US' Also, translations in the other languages are changed to to_translate

New fields (1)
  • is_default_lang Boolean
    default=False args: 'Default Language'
Public methods (0)

No public methods.