コード例 #1
0
ファイル: test_mapper.py プロジェクト: tate11/odoo8_module
        class MyExportMapper(ExportMapper):

            direct = [('street', 'out_street'), (none('in_t'), 'out_t'),
                      (none(convert('in_f', bool)), 'out_f')]

            @changed_by('name', 'city')
            @mapping
            def name(self):
                pass

            @changed_by('email')
            @mapping
            def email(self):
                pass

            def no_decorator(self):
                pass
コード例 #2
0
 class MyMapper(ImportMapper):
     direct = [('field', 'field2'),
               ('no_field', 'no_field2'),
               (convert('name', int), 'out_name')]
コード例 #3
0
 class MyMapper(ImportMapper):
     direct = [(none(convert('in_f', bool)), 'out_f'),
               (none(convert('in_t', bool)), 'out_t')]
コード例 #4
0
 class MyMapper(ImportMapper):
     direct = [(convert('name', int), 'out_name')]