Skip to content

Commit 9883dd7

Browse files
[IMP] web_form_banner: imp readme
1 parent 01e3d2e commit 9883dd7

File tree

7 files changed

+40
-0
lines changed

7 files changed

+40
-0
lines changed

web_form_banner/README.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,25 @@ trigger fields)**
216216
else:
217217
result = {"visible": False}
218218
219+
If we set up the rules for a partner record as shown below:
220+
221+
|image1|
222+
223+
|image2|
224+
225+
The banners will be displayed in the partner form view:
226+
227+
|image3|
228+
229+
Once the values are filled in, the banners will disappear:
230+
231+
|image4|
232+
233+
.. |image1| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_email_rule.png
234+
.. |image2| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_tag_rule.png
235+
.. |image3| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_layout_banner.png
236+
.. |image4| image:: https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_layout_no_banner.png
237+
219238
Known issues / Roadmap
220239
======================
221240

web_form_banner/readme/USAGE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,17 @@ if last:
162162
else:
163163
result = {"visible": False}
164164
```
165+
166+
If we set up the rules for a partner record as shown below:
167+
168+
![](../static/description/partner_email_rule.png)
169+
170+
![](../static/description/partner_tag_rule.png)
171+
172+
The banners will be displayed in the partner form view:
173+
174+
![](../static/description/partner_layout_banner.png)
175+
176+
Once the values are filled in, the banners will disappear:
177+
178+
![](../static/description/partner_layout_no_banner.png)

web_form_banner/static/description/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,13 @@ <h2><a class="toc-backref" href="#toc-entry-5">Message setting examples:</a></h2
562562
</span><span class="k">else</span><span class="p">:</span><span class="w">
563563
</span> <span class="n">result</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;visible&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">}</span>
564564
</pre>
565+
<p>If we set up the rules for a partner record as shown below:</p>
566+
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_email_rule.png" /></p>
567+
<p><img alt="image2" src="https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_tag_rule.png" /></p>
568+
<p>The banners will be displayed in the partner form view:</p>
569+
<p><img alt="image3" src="https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_layout_banner.png" /></p>
570+
<p>Once the values are filled in, the banners will disappear:</p>
571+
<p><img alt="image4" src="https://raw.githubusercontent.com/OCA/web/19.0/web_form_banner/static/description/partner_layout_no_banner.png" /></p>
565572
</div>
566573
</div>
567574
<div class="section" id="known-issues-roadmap">
32.7 KB
Loading
37.4 KB
Loading
35.6 KB
Loading
34.8 KB
Loading

0 commit comments

Comments
 (0)