4

Currently in odoo date picker shows from Su-Mo-Tu-We-Th-Fr-Sa i want to make it starts from Mo-Tu-We-Th-Fr-Sa-Su in some case and in some case Su-Mo-Tu-We-Th-Fr-Sa. can anyone help me how to achive this as i checked in default odoo 12 addons it is hard coded. web/static/lib/moment/locale/.. language wise different files.

enter image description here

Jack Sparrow
  • 628
  • 8
  • 20

1 Answers1

0

[![Solution for you]

enter image description here

Just try code like this and get solution for your question. I just try in my local but you have to check that it is not affect on any other functionality of odoo default.

Vibha Kachhela
  • 184
  • 1
  • 6
  • 2
    this will be hard-coded now suppose if someone has weekdays from Sun to Sat ? and in odoo 12 there is one option in languages First day of week it will affects only on calendar views – Jack Sparrow Jan 31 '19 at 12:42
  • Yes Jack I checked that it's affect on calendar view. but it also affect on date or date-time fields.In date or date-time selection you got what you want. – Vibha Kachhela Jan 31 '19 at 13:25
  • 1
    this need to be done as configurable like odoo-12 language has options. and above code you shows is in private function is it possible to access private functions.:)? – Jack Sparrow Jan 31 '19 at 14:30