Commit 06d0714b by Juan

Mejora coordenadas

1 parent c40d54c9
......@@ -79,7 +79,10 @@ class trans_punto_retiro(models.Model):
@api.depends('pr_coordenadas')
def compute_pr_coordenadas(self):
for rec in self:
rec.pr_coordenadas = "-32.946832, -60.640122"
loc = rec.pr_localidad.coordenadas
if loc == False:
loc = "-32.946832, -60.640122"
rec.pr_coordenadas = loc
@api.one
@api.constrains('pr_telefono')
......
......@@ -91,7 +91,7 @@
</group>
<group col="4" string="Facturas">
<field name="comprobantes" readonly="1" colspan="4" nolabel="1"/>
<field name="comprobantes" readonly="0" colspan="4" nolabel="1"/>
</group>
<!--</sheet> -->
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!