Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2616 Lượt xem

The language of the quotation is dependant on the customer language settings. That seems to be working well with the exception of the unit of measure for each sale order item in the table.


The unit of measure translations are set correctly, but the field does not get translated to the correct language of the customer in the pdf, but gets set based on the language of the user that is generating the pdf. 


This doesn't make much sense as why would anybody want the units of measure in a different language from the rest of the quotation. How can we adjust this?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hey,

Thanks CandidRoot Solutions Private Limited for the pointer. I tested the issue in runbot and could not reproduce it, so I figured something is wrong with our configuration.

I compared the differences in quotation templates and it turns out the t tag that sets the language depending on the partner settings was missing for some reason in our qweb template.

t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"

As everything apart from UoM got translated correctly I didn't consider this possibility before.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Mlenarsic,

it's not like that you have mentioned, i could not reproduce same issue on odoo 15.

UOM is also being traslated as per customer language. 

please produce same issue on runbot.

Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat



Ảnh đại diện
Huỷ bỏ

kindly do upvote or make as best answer if it really helps you !!

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 16
8632
1
thg 10 15
4540
2
thg 4 25
1027
1
thg 11 24
1758
0
thg 9 24
1165