openerp

How to import .py file from another directory? [duplicate]

孤人 提交于 2019-11-26 19:29:16
问题 This question already has an answer here: How to do relative imports in Python? 14 answers I have this structure of files (directory and after arrow files): model -> py_file.py report -> other_py_file.py main __init__.py : import model import report model directory: import py_file report directory: import other_py_file now in other_py_file I want to import py_file , but what ever I try I give error that there is no such module. I tried this: from model import py_file Then: import py_file

Which are the available domain operators in Openerp / Odoo?

只愿长相守 提交于 2019-11-26 17:56:54
问题 I know few operator in openerp domain. I dont get the details of available domains and their explanation. Particularly for these negation domains. Can anyone tell me the detail list? 回答1: This gives a overview: List of Domain operators: ! (Not), | (Or), & (And) List of Term operators: '=', '!=', '<=', '<', '>', '>=', '=?', '=like', '=ilike', 'like', 'not like', 'ilike', 'not ilike', 'in', 'not in', 'child_of' Usage : Input records: Record 1: Openerp Record 2: openerp Record 3: Opensource