This question has been flagged

Hi there, 

I'm trying to print the delivery slip in the language of the store it is coming from. So at Sale Order there will be a store_id. 

I'm thinking to create a store model so I can put all the stores there and somehow relate one field of this model to the Language model (which I'm not able to find)? (We are not going to use multi-company settings)

Am I on the right direction? 

Avatar
Discard
Best Answer

You have two way to do,

- Simple way change preference to select language in Delivery slip(qweb report), and just assign language in warehouse address(partner).

   like : <t t-call="stock.report_delivery_document" t-lang="o.picking_type_id.warehouse_id.partner_id.lang"/>

- OR Add new field language

You can add Language field on warehouse/store. Now in delivery slip report(qweb) change language prefer from customer to taken language from warehouse/store.

like : <t t-call="stock.report_delivery_document" t-lang="o.picking_type_id.warehouse_id.lang"/>

Avatar
Discard