Can't strftime lang that value is None
1. Traceback:
File "/home/xxxx/trytond/trytond/modules/stock/move.py", line 629, in get_cost_price
self.company.currency, round=False)
File "/home/xxxx/trytond/trytond/modules/currency/currency.py", line 172, in compute
lang = Lang.get()
File "/home/xxxx/trytond/trytond/ir/lang.py", line 506, in strftime
return value.strftime(format)
AttributeError: 'NoneType' object has no attribute 'strftime'
2. Context
{'client': '61d2cf34-76b0-416b-b8fd-b6f8566a41ab', 'user_conform_groups': [], 'employee': None, 'company': 3, 'company.rec_name': 'xxxxx', 'language': 'es', 'language_direction': 'ltr', 'groups': [12, 64, 1, 11, 24, 31, 32, 44, 2, 27, 8, 35, 16, 78, 20, 17, 5, 22, 6, 51, 7, 49, 34, 83, 29, 9, 50, 85, 4, 13, 76, 59, 71, 73, 60, 74, 77, 80, 62, 72, 3, 57, 36, 52, 15, 79, 14, 86, 21, 75, 19, 84, 38, 18, 25, 30, 23, 28, 26, 37, 10, 33, 41], 'roles': [], 'locale': {'date': '%d/%m/%Y', 'grouping': [3, 3, 0], 'decimal_point': ',', 'thousands_sep': '.'}, '_check_access': False, '_request': {'remote_addr': '10.254.0.18', 'http_host': 'localhost:38400', 'scheme': 'http', 'is_secure': False}, 'with_childs': False, 'locations': [], 'stock_date_end': datetime.date(2020, 9, 16), 'date': None}
See that "date" is None
3. Reason:
date = Transaction().context.get('date', Date.today()) [1]
"date" is None and not set Date.today()
[1] https://github.com/tryton/currency/blob/develop/currency.py#L177