Skip to content

Commit

Permalink
[FIX] fiscal_epos_print: da applicare solo ai paesi italiani
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Jan 24, 2024
1 parent 05dfdce commit 5fa1408
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fiscal_epos_print/models/pos_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def create_from_ui(self, orders, draft=False):
draft = True
order_ids = super(PosOrder, self).create_from_ui(orders, draft)
for order in orders:
if order["data"].get("fiscal_receipt_number"):
if (
order["data"].get("fiscal_receipt_number")
and self.env.company.country_id.id == self.env.ref("base.it").id
):
existing_draft_orders = self.search([
("pos_reference", "=", order["data"].get("name")),
("state", "=", "draft"),
Expand Down

0 comments on commit 5fa1408

Please sign in to comment.