Howto.md 339 Bytes
Newer Older
François C. committed
1 2 3 4 5 6 7 8 9 10 11
## Add odoo user login button

- In the template, include "conn_admin.html" as following :

```
{% block content %}
  {% include "common/conn_admin.html" %}
```

- In the JS code, use the following pattern (for example) :
```
François C. committed
12 13 14 15
    $(document).ready(function() {
        if (coop_is_connected()) {
          show content
        }
François C. committed
16 17
    }
```