Problem
when I change the start-date, dorpdown is in jallali, when a date is selected, it shows the date in jalali in tree view.
The problem is appear after that. When I click on the form, it change the jalali date to georgian date preceding "j" letter.
In this case, if I save the form, it shows the start_date in jalali again.
Python
class sd_contract.contract(models.Model):
contract = fields.Char()
info= fields.One2many('sd_contract.info', 'contract')
class sd_contract.info(models.Model):
contract = fields.Many2one('sd_contract.contract')
start_date= fields.Date()
XML
<field name="contract">
<tree editable="top">
<field name="start_date" widget="date" />
</tree>
</field>
Problem when I change the start-date, dorpdown is in jallali, when a date is selected, it shows the date in jalali in tree view. The problem is appear after that. When I click on the form, it change the jalali date to georgian date preceding "j" letter.
In this case, if I save the form, it shows the start_date in jalali again.