Home
last modified time | relevance | path

Searched refs:tracked_field (Results 1 – 1 of 1) sorted by relevance

/dports/finance/odoo/odoo-19d77c2a03335eb95a686bd69a1b56b38e87d609/odoo/addons/account/models/
H A Daccount_move.py4244 def _get_formated_values(self, tracked_field): argument
4245 if tracked_field.get('field_type') in ('date', 'datetime'):
4247 …'old_value': format_date(self.env, fields.Datetime.from_string(tracked_field.get('old_value_dateti…
4248 …'new_value': format_date(self.env, fields.Datetime.from_string(tracked_field.get('new_value_dateti…
4250 elif tracked_field.get('field_type') in ('one2many', 'many2many', 'many2one'):
4252 'old_value': tracked_field.get('old_value_char', ''),
4253 'new_value': tracked_field.get('new_value_char', '')
4257 …'old_value': [val for key, val in tracked_field.items() if 'old_value' in key][0], # Get the first…
4258 …'new_value': [val for key, val in tracked_field.items() if 'new_value' in key][0], # Get the first…