#natinho68 - preferred locale

1 messages · Page 1 of 1 (latest)

native tartan
#

You should just need to set it on the Customer. Is setting prefered_locales on the Customer not giving you the behavior that you are looking for?

placid heart
#

Yes it is but I would like to know if you can do it directly in invoice because the customer behavior is very earlier than the creation of the invoice in my workflow (it can be much easier)

native tartan
#

Unfortunately I don't think that the Invoice object has that setting, you can only set it on the Customer. Can you tell me a bit more about why you are trying to set it on the Invoice?

placid heart
#

Yes, it's because our invoice locale is based on where is located the product the customer has purchased, so it can be dynamic, for one product it will be "en" and for another "it".
So the only solution is to get the customer and update it preferred_locales before my invoice creation ?

native tartan
#

Yes, that would be the best way to set this at the moment