odoo-8

odoo - display name of many2one field combination of 2 fields

妖精的绣舞 提交于 2019-11-27 02:58:30
问题 In my module i have the following many2one field: 'xx_insurance_type': fields.many2one('xx.insurance.type', string='Insurance') where xx.insurance.type is the following: class InsuranceType(osv.Model): _name='xx.insurance.type' _columns = { 'name' : fields.char(size=128, string = 'Name'), 'sale_ids': fields.one2many('sale.order', 'xx_insurance_type', string = 'Sale orders'), 'insurance_percentage' : fields.float('Insurance cost in %') } I know the many2one field takes the name field as its

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