Skip to content

Instantly share code, notes, and snippets.

@nhomar
Created March 29, 2015 06:36
Show Gist options
  • Select an option

  • Save nhomar/4c164283a235d9d52926 to your computer and use it in GitHub Desktop.

Select an option

Save nhomar/4c164283a235d9d52926 to your computer and use it in GitHub Desktop.
Yml Templates
-
Setting Full width on theme_avantgarde. Due to the geniuses odoos guys I am
trying to disable one and enable the oposite instead use the model method.
-
!python {model: ir.ui.view}: |
self.write(cr, uid, [ref('theme_avantgarde.avantgarde_option_layout_fullwidth')], {'active': True}, context={'active_test': True})
self.write(cr, uid, [ref('theme_avantgarde.avantgarde_option_layout_boxed')], {'active': False}, context={'active_test': True})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment