Commit ca01e9e0 authored by Daniel Santibáñez Polanco's avatar Daniel Santibáñez Polanco
Browse files

[IMP]Muestro con código

parent fe950511
......@@ -13,3 +13,11 @@ class AduanasFormasPago(models.Model):
sigla = fields.Char(
string="Sigla",
)
@api.multi
def name_get(self):
res = []
for i in self:
res.append((i.id, '%s.-[%s]: %s' %(i.code, i.sigla, i.name)))
return res
......@@ -7,3 +7,10 @@ class Incoterms(models.Model):
aduanas_code = fields.Integer(
string="Código de aduanas"
)
@api.multi
def name_get(self):
res = []
for i in self:
res.append((i.id, '%s.-[%s] %s' %(i.aduanas_code, i.code, i.name)))
return res
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment