Browse Source

[ADD] Add caisse id in pos + transaction sent

12-V2.0
Juliana 4 years ago
parent
commit
b19b86a1cd
  1. 5
      models/pos_order_line.py

5
models/pos_order_line.py

@ -11,7 +11,7 @@ class PosOrderLine(models.Model):
# ------------------------------------------------------
# Fields declaration
# ------------------------------------------------------
caisse_id = fields.Char('Id de la caisse')
# ------------------------------------------------------
# SQL Constraints
# ------------------------------------------------------
@ -69,7 +69,8 @@ class PosOrderLine(models.Model):
"seller_code": seller_id.product_code,
"ean13": ean13_digit,
"ean13_verif": ean13_verif_digit,
"is_pos": True
"is_pos": True,
"balance_id": res.caisse_id
}
self.env['pos.transaction'].create(vals)
return res

Loading…
Cancel
Save