fixup! [12.0][PORT] server_environment. port static files controllers from server-tools 8.0 branch
This commit is contained in:
parent
553d572887
commit
5433d70dec
|
|
@ -99,7 +99,9 @@ This module provides also the possibility to load static files depending
|
||||||
on the environment.
|
on the environment.
|
||||||
|
|
||||||
Create a file view/templates.xml, and insert a css file
|
Create a file view/templates.xml, and insert a css file
|
||||||
::
|
|
||||||
|
```
|
||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
<template id="login_layout_no_db" name="Login Layout"
|
<template id="login_layout_no_db" name="Login Layout"
|
||||||
inherit_id="web.login_layout" >
|
inherit_id="web.login_layout" >
|
||||||
|
|
@ -109,8 +111,14 @@ Create a file view/templates.xml, and insert a css file
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Then, create css files for each environment you have. exemple:
|
Then, create css files for each environment you have. exemple:
|
||||||
::
|
|
||||||
|
```
|
||||||
/server_environment_files/static/dev/css.css
|
/server_environment_files/static/dev/css.css
|
||||||
/server_environment_files/static/prod/css.css
|
/server_environment_files/static/prod/css.css
|
||||||
...
|
...
|
||||||
|
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue