res_partner.py 278 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 # -*- coding: utf-8 -*- from openerp import fields, models class ResPartner(models.Model): _inherit = "res.partner" discount_computation = fields.Selection( selection=[('total', 'Total'), ('unit_price', 'Unit Price')], string="Discount Computation")