-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[13.0][14.0] Selection field in AbstractModel can not be translated. #64065
Comments
@mart-e can you give feedback on this one? |
@Yenthe666 Thanks. 🤗 |
Hi, Are you sure of your test? Have you correctly installed/updated the module? |
@mart-e hi, I came to this issue twice in V13 during my odoo development work.I am very sure about this. V14, I just make a simply test, in my test , this issue exists. |
@tanghulu0608 same, I don't have the issue in 13.0 with your code snippet so it's probably another issue. As said above, could you make a PR to show your problem? |
@mart-e I have update the sample code. Please try again in V13. |
@mart-e It exists. I meet it. In ir_translate, I found it. But, UI doesn't show the translated word. |
Maybe the problem is that you are working with --dev mode? |
@pedrobaeza No. |
Yes, I have this issue too. |
Oh ok, with the updated description, the issue is different now ! Indeed, this does not work, I think we already got this issue in the past. The workaround for this is to define the selection in the actual model it is used (so |
@mart-e Thank you very much. Wish this will be fixed soon. |
Hi, I understand models.py -> load_views is responsible for returning the fields to the UI. Thanks |
Impacted versions:
[13.0] [14.0]
Steps to reproduce:
1. Code like this:
2. In another module ,b, code like this:
Current behavior:
Selection field from AbstractModel can not be translated on b.b form view.
Expected behavior:
Selection field from AbstractModel CAN be translated on b.b form view.
Video/Screenshot link (optional):
![image](https://user-images.githubusercontent.com/5561864/103637947-326b3c80-4f87-11eb-840a-b409889bcafb.png)
sample.zip updated
The text was updated successfully, but these errors were encountered: