Functions in direct bindings
As discussed in https:/
Example of function mappings:
direct = [
]
def normalize_
def transform(self, record):
if record[field] == '0000-00-00 00:00:00':
return record[field]
return transform
def convert(field, conv_type):
def transform(self, record):
return conv_type(field)
return transform
def unwrap_m2o(field):
def transform(self, record):
# get the unwrapped id from the binding
return transform
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Guewen Baconnier @ Camptocamp
- Direction:
- Approved
- Assignee:
- Guewen Baconnier @ Camptocamp
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Guewen Baconnier @ Camptocamp
- Completed by
- Guewen Baconnier @ Camptocamp