|
@@ -24,7 +24,7 @@ class sale_order(models.Model):
|
|
|
self.credito = not self.contado
|
|
|
if self.contado == True:
|
|
|
self.payment_term = False
|
|
|
- self.order_policy = 'prepaid'
|
|
|
+ self.order_policy = 'manual'
|
|
|
|
|
|
@api.one
|
|
|
@api.onchange('credito')
|
|
@@ -51,6 +51,10 @@ class sale_order(models.Model):
|
|
|
'credito':self.credito
|
|
|
})
|
|
|
self.update_state()
|
|
|
+ # inv.signal_workflow('invoice_open')
|
|
|
+ # for picking in sale.picking_ids:
|
|
|
+ # picking.force_assign()
|
|
|
+ # picking.action_done()
|
|
|
|
|
|
@api.multi
|
|
|
def update_state(self):
|