sale.py 210 B

12345678
  1. # -*- encoding: utf-8 -*-
  2. from openerp import models, api, fields
  3. class SaleOrder(models.Model):
  4. _inherit = 'sale.order'
  5. city = fields.Char(string='Ciudad', related="partner_id.city", readonly=True)