You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config=settings_model.search(
[('company_id', '=', cpny.id)], limit=1, order='id desc')
ifnotconfig:
# first configurationconfig=settings_model.create({'company_id': cpny.id})
config.write(settings)
# Execute the record in order to trigger save and to apply settingsconfig.execute()
Do you think this repo is a convenient place for this kind of script ?
Thanks
The text was updated successfully, but these errors were encountered:
Hi all ,
I need to apply the same the settings over multiple new db used for test/fix, etc.
this code is sufficient
Do you think this repo is a convenient place for this kind of script ?
Thanks
The text was updated successfully, but these errors were encountered: