Browse Source

Agregar ajuste varios nota de remisión

root 3 năm trước cách đây
mục cha
commit
8c36c608e3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      nota_remision.py

+ 2 - 1
nota_remision.py

@@ -152,7 +152,7 @@ class sale_nota_remision(models.Model):
 
     _defaults = {
         'state': 'draft',
-        'is_consignment': True,
+        'is_sale': True,
         'name': lambda obj, cr, uid, context: '/',
     }
 
@@ -230,6 +230,7 @@ class sale_order(models.Model):
                        'partner_street':self.partner_id.street,
                        'origin':self.name,
                        'initial_transfer_date':self.date_order,
+                       'finish_transfer_date':self.date_order,
                        'user_id':self.user_id.id,
                        'amount_total':self.amount_total,
                        'partner_company':self.partner_id.company_id.id,