|
|
@ -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 |
|
|
|