Skip to content

Commit

Permalink
Merge PR #90 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Dec 3, 2023
2 parents 2e83b6e + c6378cd commit eb1baa4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions l10n_pt_stock_invoicexpress/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ def _compute_invoicexpress_doc_type(self):

def _send_confirmation_email(self):
# Only send Delivery emails if the InvoiceXpress checkbox is selected
to_send = self.filtered("invoicexpress_send_email")
super(StockPicking, to_send)._send_confirmation_email()
dont_send = self.filtered(
lambda x: x.can_invoicexpress and not x.invoicexpress_send_email
)
super(StockPicking, self - dont_send)._send_confirmation_email()

@api.model
def _get_invoicexpress_prefix(self, doctype):
Expand Down

0 comments on commit eb1baa4

Please sign in to comment.