def METHOD_NAME(self):
    pms_property_id = (
        self.env.context.get("property")
        or self.env.user.get_active_property_ids()[0]
    )
    for record in self:
        if self._context.get("board_service"):
            record.board_price = (
                self.env["pms.board.service.room.type.line"]
                .search(
                    [
                        (
                            "pms_board_service_room_type_id",
                            "=",
                            self._context.get("board_service"),
                        ),
                        ("product_id", "=", record.id),
                        ("pms_property_id", "=", pms_property_id),
                    ]
                )
                .amount
            )
        else:
            record.board_price = False