Browse Source

Agregar picking en el delivery de envío

SEBAS 6 months ago
parent
commit
ab30a3c6a8
4 changed files with 8 additions and 3 deletions
  1. 2 1
      models/delivery_check.py
  2. 4 2
      models/sale_order.py
  3. 1 0
      views/account_invoice.xml
  4. 1 0
      views/sale_order.xml

+ 2 - 1
models/delivery_check.py

@@ -7,6 +7,7 @@ class DeliveryCheck(models.Model):
     store_id = fields.Many2one('res.store', string='Sucursal')
     delivery_type = fields.Selection([
         ('local', 'Local'),
-        ('envio', 'Envio al Interior')],
+        ('envio', 'Envio al Interior'),
+        ('pickup', 'Pickup')],
         string='Tipo de delivery', default='local')
     amount = fields.Float(string="Comisión por delivery")

+ 4 - 2
models/sale_order.py

@@ -7,7 +7,8 @@ class SaleOrder(models.Model):
     is_delivery = fields.Boolean(string='Delivery?')
     delivery_type = fields.Selection([
         ('local', 'Local'),
-        ('envio', 'Envio al Interior')],
+        ('envio', 'Envio al Interior'),
+        ('pickup', 'Pickup')],
         string='Tipo de delivery', default='local')
 
     @api.multi
@@ -42,5 +43,6 @@ class AccountInvoice(models.Model):
     is_delivery = fields.Boolean(string='Delivery?')
     delivery_type = fields.Selection([
         ('local', 'Local'),
-        ('envio', 'Envio al Interior')],
+            ('envio', 'Envio al Interior'),
+            ('pickup', 'Pickup')],
         string='Tipo de delivery', default='local')

+ 1 - 0
views/account_invoice.xml

@@ -8,6 +8,7 @@
        <field name="arch" type="xml">
          <field name="account_id"  position="after">
            <field name="is_delivery"/>
+           <field name="is_pickup"/>
            <field name="delivery_type" attrs="{'invisible':[('is_delivery','=',False)]}"/>
          </field>
       </field>

+ 1 - 0
views/sale_order.xml

@@ -8,6 +8,7 @@
        <field name="arch" type="xml">
          <field name="partner_id"  position="after">
            <field name="is_delivery"/>
+           <field name="is_pickup"/>
            <field name="delivery_type" attrs="{'invisible':[('is_delivery','=',False)]}"/>
          </field>
       </field>