Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Oct 3, 2024
1 parent eba5f46 commit b3b7583
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 18 deletions.
20 changes: 13 additions & 7 deletions product_english_name/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Product English Name

|badge1| |badge2| |badge3| |badge4| |badge5|

This module display product name in english near name in user language.
This module displays the product name in English near the products name in user's language.

Use case:
Product name is a very important information at least you buy products in a foreign country.
It often occurs that in an odoo instance product names don't match with their translations.
This module can help to detect error on translations.
The Product name is very important information at least if you buy products in a foreign country.
It often occurs that in an odoo instance the product names don't match with their translations.
This module can help to detect those translation errors.

.. figure:: https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_french.png
:alt: Display product name in english near name in user language
:alt: Display the product name in English near the product name in users language


.. figure:: https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_english.png
Expand All @@ -54,9 +54,9 @@ This module can help to detect error on translations.
Configuration
=============

- active another language than english and set it to your user.
- activate another language than English and set it as your user language.
- add your user to 'Show english name' group.
- browse your products in form view.
- browse your products in a form view.


Bug Tracker
Expand All @@ -77,6 +77,12 @@ Authors

* Akretion

Contributors
~~~~~~~~~~~~

- Akretion:
- David BEAL <[email protected]>

Maintainers
~~~~~~~~~~~

Expand Down
5 changes: 3 additions & 2 deletions product_english_name/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 2024 Akretion
{
"name": "Product English Name",
"summary": """Display the product name in English besides the product name in the users language. """,
"summary": """Display the product name in English besides the product name
in the users language.""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"development_status": "Alpha",
Expand All @@ -13,7 +14,7 @@
],
"maintainers": ["bealdav"],
"data": [
"views/product_template.xml",
"security/groups.xml",
"views/product_template.xml",
],
}
2 changes: 2 additions & 0 deletions product_english_name/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Akretion:
- David BEAL <[email protected]>
32 changes: 23 additions & 9 deletions product_english_name/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ <h1 class="title">Product English Name</h1>
!! source digest: sha256:17d91efa55e70a938b2e736c967f64178caa9b4ff2d73d4f585be5e5e8ad1806
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/product-attribute/tree/16.0/product_english_name"><img alt="OCA/product-attribute" src="https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_english_name"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module display product name in english near name in user language.</p>
<p>This module displays the product name in English near the products name in user’s language.</p>
<p>Use case:
Product name is a very important information at least you buy products in a foreign country.
It often occurs that in an odoo instance product names don’t match with their translations.
This module can help to detect error on translations.</p>
The Product name is very important information at least if you buy products in a foreign country.
It often occurs that in an odoo instance the product names don’t match with their translations.
This module can help to detect those translation errors.</p>
<div class="figure">
<img alt="Display product name in english near name in user language" src="https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_french.png" />
<img alt="Display the product name in English near the product name in users language" src="https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_french.png" />
</div>
<div class="figure">
<img alt="https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_english.png" src="https://raw.githubusercontent.com/OCA/product-attribute/16.0/product_english_name/static/description/screen_english.png" />
Expand All @@ -393,17 +393,18 @@ <h1 class="title">Product English Name</h1>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ul class="simple">
<li>active another language than english and set it to your user.</li>
<li>activate another language than English and set it as your user language.</li>
<li>add your user to ‘Show english name’ group.</li>
<li>browse your products in form view.</li>
<li>browse your products in a form view.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
Expand All @@ -422,8 +423,21 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<li>Akretion</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li><dl class="first docutils">
<dt>Akretion:</dt>
<dd><ul class="first last">
<li>David BEAL &lt;<a class="reference external" href="mailto:david.beal&#64;akretion.com">david.beal&#64;akretion.com</a>&gt;</li>
</ul>
</dd>
</dl>
</li>
</ul>
</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" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
Expand Down
1 change: 1 addition & 0 deletions product_english_name/views/product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<record model="ir.ui.view" id="product_template_form_view">
<field name="model">product.template</field>
<field name="priority">20</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<xpath expr="//h1[1]" position="after">
Expand Down

0 comments on commit b3b7583

Please sign in to comment.