mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] wizard invoice bill services-rooms
This commit is contained in:
@@ -275,12 +275,11 @@ class FolioAdvancePaymentInv(models.TransientModel):
|
||||
@api.model
|
||||
def _get_lines_to_invoice(self, folios, bill_services=True, bill_rooms=True):
|
||||
lines_to_invoice = folios.sale_line_ids
|
||||
import wdb; wdb.set_trace()
|
||||
if not self.bill_services:
|
||||
if not bill_services:
|
||||
lines_to_invoice = lines_to_invoice - lines_to_invoice.filtered(
|
||||
lambda l: l.service_id and not l.service_id.is_board_service
|
||||
)
|
||||
if not self.bill_rooms:
|
||||
if not bill_rooms:
|
||||
lines_to_invoice = lines_to_invoice.filtered(
|
||||
lambda l: l.reservation_id and l.reservation_line_ids
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user