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 5fa1408 commit a2a5f1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fiscal_epos_print/models/pos_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ def _order_fields(self, ui_order):

@api.model
def create_from_ui(self, orders, draft=False):
draft = True
if self.env.company.country_id.id == self.env.ref("base.it").id:
draft = True
order_ids = super(PosOrder, self).create_from_ui(orders, draft)
for order in orders:
if (
order["data"].get("fiscal_receipt_number")
order["data"].get("fiscal_receipt_number", False)
and self.env.company.country_id.id == self.env.ref("base.it").id
):
existing_draft_orders = self.search([
Expand Down

0 comments on commit a2a5f1f

Please sign in to comment.