|
@@ -21,8 +21,8 @@ class purchase_order(models.Model):
|
|
@api.one
|
|
@api.one
|
|
@api.onchange('contado')
|
|
@api.onchange('contado')
|
|
def cambiar_estado_contado(self):
|
|
def cambiar_estado_contado(self):
|
|
|
|
+ self.credito = not self.contado
|
|
if self.contado == True:
|
|
if self.contado == True:
|
|
- self.credito = not self.contado
|
|
|
|
self.payment_term = False
|
|
self.payment_term = False
|
|
|
|
|
|
def _convert_str_to_datetime(self, date):
|
|
def _convert_str_to_datetime(self, date):
|