-
-
Notifications
You must be signed in to change notification settings - Fork 692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD][16.0] product_english_name module #1732
base: 16.0
Are you sure you want to change the base?
Conversation
6c15e6a
to
35ce41f
Compare
35ce41f
to
c80b51d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionnal review OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,4 @@ | |||
- active another language than english and set it to your user. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- active another language than english and set it to your user. | |
- activate another language than English and set it as your user language. |
@@ -0,0 +1,4 @@ | |||
- active another language than english and set it to your user. | |||
- add your user to 'Show english name' group. | |||
- browse your products in form view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- browse your products in form view. | |
- browse your products in a form view. |
This module display product name in english near name in user language. | ||
|
||
Use case: | ||
Product name is a very important information at least you buy products in a foreign country. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Product name is a very important information at least you buy products in a foreign country. | |
The Product name is very important information at least if you buy products in a foreign country. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module can help to detect error on translations. | |
This module can help to detect those translation errors. |
<field name="inherit_id" ref="product.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//h1[1]" position="after"> | ||
<h5 groups="product_english_name.show_english_name"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2024-09-30 14:58:43,884 478 WARNING odoo odoo.addons.base.models.ir_ui_view: The group 'product_english_name.show_english_name' defined in view does not exist!
View error context:
{'file': '/__w/product-attribute/product-attribute/product_english_name/views/product_template.xml',
'line': 3,
'name': 'product.template form',
'view': ir.ui.view(1841,),
'view.model': 'product.template',
'view.parent': ir.ui.view(464,),
'xmlid': 'product_template_form_view'}
This module can help to detect error on translations. | ||
|
||
.. figure:: ../static/description/screen_french.png | ||
:alt: Display product name in english near name in user language |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
: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 |
<odoo> | ||
|
||
<record id="show_english_name" model="res.groups"> | ||
<field name="name">Show english name</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<field name="name">Show english name</field> | |
<field name="name">Show English name</field> |
# Copyright 2024 Akretion | ||
{ | ||
"name": "Product English Name", | ||
"summary": """Display product name in english """, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"summary": """Display product name in english """, | |
"summary": """Display the product name in English besides the product name in the users language. """, |
@@ -0,0 +1,12 @@ | |||
This module display product name in english near name in user language. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It often occurs that in an odoo instance product names don't match with their translations. | |
It often occurs that in an odoo instance the product names don't match with their translations. |
cc @legalsylvain @HaraldPanten @rousseldenis @Kev-Roche