Skip to content

Commit

Permalink
[MIG] partner_survey: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chaule97 committed May 30, 2024
1 parent c7150f5 commit 3590759
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 9 deletions.
8 changes: 8 additions & 0 deletions partner_survey/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ Contributors
- Ernesto Tejeda
- Stefan Ungureanu

- Chau Le [email protected]

Other credits
-------------

The migration of this module from 16.0 to 17.0 was financially supported
by Camptocamp

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion partner_survey/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Partner Survey",
"summary": "Link partners with their survey results",
"category": "Marketing",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"depends": ["contacts", "survey"],
"data": ["views/res_partner_view.xml"],
"author": "Tecnativa, Camptocamp, Odoo Community Association (OCA)",
Expand Down
1 change: 1 addition & 0 deletions partner_survey/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
- Antonio Espinosa
- Ernesto Tejeda
- Stefan Ungureanu
- Chau Le <[email protected]>
1 change: 1 addition & 0 deletions partner_survey/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The migration of this module from 16.0 to 17.0 was financially supported by Camptocamp
11 changes: 9 additions & 2 deletions partner_survey/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ <h1 class="title">Partner Survey</h1>
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
<li><a class="reference internal" href="#other-credits" id="toc-entry-5">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -415,10 +416,16 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<li>Stefan Ungureanu</li>
</ul>
</li>
<li>Chau Le <a class="reference external" href="mailto:chaulb&#64;trobz.com">chaulb&#64;trobz.com</a></li>
</ul>
</div>
<div class="section" id="other-credits">
<h2><a class="toc-backref" href="#toc-entry-5">Other credits</a></h2>
<p>The migration of this module from 16.0 to 17.0 was financially supported
by Camptocamp</p>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand Down
12 changes: 6 additions & 6 deletions partner_survey/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
type="object"
icon="fa-list-alt"
name="action_view_surveys"
attrs="{'invisible': ['|', '|', ('surveys_count', '=', 0), ('is_company', '=', True), ('surveys_invisible', '=', True)]}"
invisible="surveys_count == 0 or is_company or surveys_invisible"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="surveys_count" />
</span>
<span
class="o_stat_text"
attrs="{'invisible': [('surveys_count', '&lt;', 2)]}"
invisible="surveys_count &lt; 2"
>Surveys</span>
<span
class="o_stat_text"
attrs="{'invisible': [('surveys_count', '&gt;', 1)]}"
invisible="surveys_count &gt; 1"
>Survey</span>
</div>
</button>
Expand All @@ -40,19 +40,19 @@
type="object"
icon="fa-list-alt"
name="action_view_surveys"
attrs="{'invisible': ['|', '|', ('surveys_company_count', '=', 0), ('is_company', '=', False), ('surveys_company_invisible', '=', True)]}"
invisible="surveys_company_count == 0 or not is_company or surveys_company_invisible"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="surveys_company_count" />
</span>
<span
class="o_stat_text"
attrs="{'invisible': [('surveys_company_count', '&lt;', 2)]}"
invisible="surveys_company_count &lt; 2"
>Surveys</span>
<span
class="o_stat_text"
attrs="{'invisible': [('surveys_company_count', '&gt;', 1)]}"
invisible="surveys_company_count &gt; 1"
>Survey</span>
</div>
</button>
Expand Down

0 comments on commit 3590759

Please sign in to comment.