chore: Make material request title translatable (#35764)

chore: Make material request title translatable
This commit is contained in:
Türker Tunalı
2023-06-18 19:59:42 +03:00
committed by GitHub
parent 93c0c26843
commit 507c966aa7

View File

@@ -115,7 +115,7 @@ class MaterialRequest(BuyingController):
"""Set title as comma separated list of items"""
if not self.title:
items = ", ".join([d.item_name for d in self.items][:3])
self.title = _("{0} Request for {1}").format(self.material_request_type, items)[:100]
self.title = _("{0} Request for {1}").format(_(self.material_request_type), items)[:100]
def on_submit(self):
self.update_requested_qty()