# Proteus scripts no longer save data?

**URL:** https://discuss.tryton.org/t/proteus-scripts-no-longer-save-data/2650
**Category:** Developer
**Created:** [April 28, 2020, 1:32pm UTC](https://discuss.tryton.org/t/proteus-scripts-no-longer-save-data/2650 "2020-04-28T13:32:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [April 28, 2020, 1:32pm UTC](https://discuss.tryton.org/t/proteus-scripts-no-longer-save-data/2650/1 "2020-04-28T13:32:39Z")

</div>

Hi,  
After the last code update, the following proteus scripts no longer save the data?

```auto
>>> from proteus import Model, config
>>> config.set_trytond()
>>> Lang = Model.get('ir.lang')
>>> lang_fr, = Lang.find([('code', '=', 'fr')])
>>> lang_fr.translatable = True
>>> lang_fr.save()
>>> print([(x.code, x.translatable) for x in Lang.find([('code', '=', 'fr')])])
[('fr', False)] ???

```

Did I miss something ?

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [April 28, 2020, 1:59pm UTC](https://discuss.tryton.org/t/proteus-scripts-no-longer-save-data/2650/2 "2020-04-28T13:59:34Z")

</div>

The translatable field is now readonly because there is a button to load translations. This was introduced by [Add language configuration wizard (#9172) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9172)

You should update your code to use the load\_translations button:

```auto
>>> from proteus import Model, config
>>> config.set_trytond()
>>> Lang = Model.get('ir.lang')
>>> lang_fr, = Lang.find([('code', '=', 'fr')])
>>> lang_fr.click('load_translations')

```

This will mark the language as translateable and load the translations for the activated modules.

---

<div class="post-metadata">

### Author: ![2cadz](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/2cadz/32/130_2.png) [@2cadz](https://discuss.tryton.org/u/2cadz)
#### Post date: [April 28, 2020, 2:04pm UTC](https://discuss.tryton.org/t/proteus-scripts-no-longer-save-data/2650/3 "2020-04-28T14:04:36Z")

</div>

Thank you, I had not measured the implication of this change in Proteus.
