-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
205 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License: AGPL-3 | ||
|
||
Help Popup | ||
=========== | ||
|
||
This module adds an html help popup on each model action. | ||
Two help fields are added to actions: owner_help and custom_help. | ||
|
||
|
||
Installation | ||
============ | ||
|
||
It was tested on Odoo 8.0 branch. | ||
|
||
|
||
Configuration | ||
============= | ||
|
||
Go to the action of your choice to add some help content | ||
or put data in some modules. | ||
|
||
|
||
Usage | ||
===== | ||
|
||
Click on ? button | ||
|
||
.. image:: help_popup/static/description/popup.png | ||
:alt: License: Help Popup | ||
|
||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* ... | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback | ||
`here <https://github.com/OCA/web/issues/new?body=module:%20web%0Aversion:%200.5%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Sylvain Calador <[email protected]> | ||
* David Beal <[email protected]> | ||
|
||
|
||
Icons | ||
------ | ||
https://www.iconfinder.com/Vecteezy | ||
|
||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit http://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<openerp> | ||
<data noupdate="1"> | ||
|
||
<record id="base.action_partner_form" model="ir.actions.act_window"> | ||
<field name="owner_help"><![CDATA[ | ||
<b>Hi Odooer,</b> | ||
<br/> | ||
<br/> | ||
<p> | ||
I'm the field 'owner_help' in the Customer action model | ||
</p> | ||
<p> | ||
I'm displayed in a Qweb html report | ||
</p> | ||
<p> | ||
Don't hesitate to customized me with your own words and syntax | ||
</p> | ||
]]></field> | ||
</record> | ||
</data> | ||
|
||
<data noupdate="0"> | ||
<record id="base.action_partner_form" model="ir.actions.act_window"> | ||
<field name="custom_help"><![CDATA[ | ||
<b>Hi developers,</b> | ||
<br/> | ||
<br/> | ||
<p> | ||
I'm the field 'custom_help' in the customer action also displayed in Qweb report. | ||
</p> | ||
<p> | ||
<b>Akretion</b> wrote these words to explain my main purpose: | ||
<blockquote> | ||
Allows to developers to write documentation on their work. | ||
</blockquote> | ||
</p> | ||
<p> | ||
</p> | ||
<p>You can write any html tag. Here is an image with img tag</p> | ||
<img src="http://www.akretion.com/sites/50443990c3c67e1bf3000004/theme/images/logo.png"/> | ||
]]></field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<template id="tpl_help"> | ||
|
||
<t t-call="report.html_container"> | ||
<t t-call="report.internal_layout"> | ||
|
||
|
||
<t t-foreach="docs" t-as="o"> | ||
|
||
<div class="page"> | ||
|
||
<b><h1 t-field="o.name"/></b> | ||
|
||
<div t-raw="o.owner_help"/> | ||
|
||
<hr width="70%"/> | ||
|
||
<h3 t-if="o.custom_help">Help from developer</h3> | ||
<div t-raw="o.custom_help"/> | ||
|
||
<hr width="70%"/> | ||
|
||
<h3 t-if="o.help">Help from Odoo</h3> | ||
<div t-raw="o.help"/> | ||
|
||
</div> | ||
|
||
<!--end foreach--> | ||
</t> | ||
|
||
</t> | ||
</t> | ||
|
||
</template> | ||
|
||
|
||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<openerp> | ||
<data> | ||
|
||
<report id="report_help_popup" | ||
model="ir.actions.act_window" | ||
string="Contextual Help" | ||
name="help_popup.tpl_help" | ||
report_type="qweb-html"/> | ||
|
||
</data> | ||
</openerp> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters