Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions purchase_blanket_order/wizard/create_purchase_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ def create_purchase_order(self):
vals = {
"product_id": line.product_id.id,
"name": line.product_id.name,
"date_planned": date_planned
if date_planned
else line.blanket_line_id.order_id.date_start,
"date_planned": (
date_planned
if date_planned
else line.blanket_line_id.order_id.date_start
),
"product_uom": line.product_uom.id,
"sequence": line.blanket_line_id.sequence,
"price_unit": line.blanket_line_id.price_unit,
Expand Down
1 change: 0 additions & 1 deletion purchase_cancel_reason/wizard/purchase_order_cancel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class PurchaseOrderCancel(models.TransientModel):

"""Ask a reason for the purchase order cancellation."""

_name = "purchase.order.cancel"
Expand Down
4 changes: 2 additions & 2 deletions purchase_request/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ def update_service_allocations(self, prev_qty_received):

@api.model
def _purchase_request_confirm_done_message_content(self, message_data):
title = (
_("Service confirmation for Request %s") % (message_data["request_name"])
title = _("Service confirmation for Request %s") % (
message_data["request_name"]
)
message = "<h3>%s</h3>" % title
message += _(
Expand Down
4 changes: 2 additions & 2 deletions purchase_request/models/stock_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def _purchase_request_confirm_done_message_content(self, message_data):

@api.model
def _picking_confirm_done_message_content(self, message_data):
title = (
_("Receipt confirmation for Request %s") % (message_data["request_name"])
title = _("Receipt confirmation for Request %s") % (
message_data["request_name"]
)
message = "<h3>%s</h3>" % title
message += _(
Expand Down
Loading